Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Restore markdown preview button #1876

Merged
merged 1 commit into from
Jan 31, 2020
Merged

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented Jan 31, 2020

In #1851 we refactored the selected note state but during testing
missed a reference to state.appState.note which should have been
updated to state.ui.note. Nothing crashed in the app because it
was being used for its truthiness but the result was that when
checking if Markdown was enabled for any given note the answer
would always end up as "no."

In this patch we're restoring the state reference which fixes that
bug and restores the preview button in the note toolbar.

In #1851 we refactored the selected note state but during testing
missed a reference to `state.appState.note` which should have been
updated to `state.ui.note`. Nothing crashed in the app because it
was being used for its truthiness but the result was that when
checking if Markdown was enabled for any given note the answer
would always end up as "no."

In this patch we're restoring the state reference which fixes that
bug and restores the preview button in the note toolbar.
@dmsnell dmsnell requested a review from a team January 31, 2020 19:00
@dmsnell dmsnell merged commit 3867114 into develop Jan 31, 2020
@dmsnell dmsnell deleted the fix/restore-markdown-preview branch January 31, 2020 19:22
@bummytime
Copy link
Member

Thank you @dmsnell!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants