Skip to content

Commit

Permalink
fix: editor not opening for single selected note after unselecting a …
Browse files Browse the repository at this point in the history
…note from batch
  • Loading branch information
Antonella Sgarlatta committed May 17, 2021
1 parent c6e4c2f commit a2b6c37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/assets/javascripts/ui_models/app_state/notes_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,13 @@ export class NotesState {
this.selectedNotes = {
[note.uuid]: note,
};
await this.openEditor(note.uuid);
this.lastSelectedNote = note;
}
}

if (this.selectedNotesCount === 1) {
await this.openEditor(Object.keys(this.selectedNotes)[0]);
}
}
}

Expand Down

0 comments on commit a2b6c37

Please sign in to comment.