fix: keep state consistent when clicking placeholder note

This commit is contained in:
Baptiste Grob
2020-09-15 13:12:01 +02:00
parent 6b4e9e317f
commit 0cd7d4b3d1

View File

@@ -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) {