Skip to content

Commit ff58de3

Browse files
authored
fix: Prevents note list from switching to a different note when opening a note not in the current folder from the command palette (#2986)
1 parent ec7d397 commit ff58de3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/web/src/javascripts/Controllers/ItemList/ItemListController.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ export class ItemListController
512512
}
513513

514514
private shouldSelectNextItemOrCreateNewNote = (activeItem: SNNote | FileItem | undefined) => {
515+
if (activeItem?.uuid === this.keepActiveItemOpenUuid) {
516+
return false
517+
}
518+
515519
const selectedView = this.navigationController.selected
516520

517521
const isActiveItemTrashed = activeItem?.trashed

0 commit comments

Comments
 (0)