fix: do not switch notes while in the trash view

This commit is contained in:
Baptiste Grob
2020-09-11 13:13:44 +02:00
parent 337589b7e9
commit 90d1814d68

View File

@@ -232,7 +232,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
const activeNote = this.activeEditorNote;
if (activeNote) {
const discarded = activeNote.deleted || activeNote.trashed;
if (discarded) {
if (discarded && !this.appState?.selectedTag?.isTrashTag) {
this.selectNextOrCreateNew();
}
} else {