diff --git a/packages/web/src/javascripts/Controllers/ItemList/ItemListController.ts b/packages/web/src/javascripts/Controllers/ItemList/ItemListController.ts index 2f568ce36..6e403e67f 100644 --- a/packages/web/src/javascripts/Controllers/ItemList/ItemListController.ts +++ b/packages/web/src/javascripts/Controllers/ItemList/ItemListController.ts @@ -401,15 +401,15 @@ export class ItemListController const activeItem = activeController?.item - if (this.shouldSelectFirstItem(itemsReloadSource)) { + if (this.shouldSelectActiveItem(activeItem) && activeItem) { + await this.selectionController.selectItem(activeItem.uuid).catch(console.error) + } else if (this.shouldSelectFirstItem(itemsReloadSource)) { await this.selectFirstItem() } else if (this.shouldCloseActiveItem(activeItem) && activeController) { this.closeItemController(activeController) this.selectionController.selectNextItem() } else if (this.shouldSelectNextItemOrCreateNewNote(activeItem)) { await this.selectNextItemOrCreateNewNote() - } else if (this.shouldSelectActiveItem(activeItem) && activeItem) { - await this.selectionController.selectItem(activeItem.uuid).catch(console.error) } }