fix: editor not opening for single selected note after unselecting a note from batch
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user