chore: clear multiple selection if selected items are not supposed to be in the current view anymore

This commit is contained in:
Aman Harwara
2023-09-21 22:26:57 +05:30
parent 1defde14fe
commit 6839ad9e5a

View File

@@ -439,11 +439,7 @@ export class ItemListController
}
private shouldLeaveSelectionUnchanged = (activeController: NoteViewController | FileViewController | undefined) => {
const hasMultipleItemsSelected = this.selectedItemsCount >= 2
return (
hasMultipleItemsSelected || (activeController instanceof NoteViewController && activeController.isTemplateNote)
)
return activeController instanceof NoteViewController && activeController.isTemplateNote
}
/**