fix: do not switch notes while in the trash view
This commit is contained in:
@@ -232,7 +232,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
|||||||
const activeNote = this.activeEditorNote;
|
const activeNote = this.activeEditorNote;
|
||||||
if (activeNote) {
|
if (activeNote) {
|
||||||
const discarded = activeNote.deleted || activeNote.trashed;
|
const discarded = activeNote.deleted || activeNote.trashed;
|
||||||
if (discarded) {
|
if (discarded && !this.appState?.selectedTag?.isTrashTag) {
|
||||||
this.selectNextOrCreateNew();
|
this.selectNextOrCreateNew();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user