Skip to content

Commit

Permalink
fix: keep state consistent when clicking placeholder note
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Sep 16, 2020
1 parent 6b4e9e3 commit 0cd7d4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/ui_models/app_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class AppState {

async openEditor(noteUuid: string) {
const note = this.application.findItem(noteUuid) as SNNote;
if (this.getActiveEditor()?.note?.uuid === noteUuid) return;
const run = async () => {
const activeEditor = this.getActiveEditor();
if (!activeEditor || this.multiEditorEnabled) {
Expand Down

0 comments on commit 0cd7d4b

Please sign in to comment.