fix: Fixes multiple selection checkbox not working when only one note is selected

This commit is contained in:
Antonella Sgarlatta
2026-02-20 23:57:42 -03:00
parent 36f973aa3f
commit 99c7cb92b5

View File

@@ -1186,7 +1186,7 @@ export class ItemListController
if (userTriggered && hasShift && !isMobileScreen()) { if (userTriggered && hasShift && !isMobileScreen()) {
await this.selectItemsRange({ selectedItem: item }) await this.selectItemsRange({ selectedItem: item })
} else if (userTriggered && this.isMultipleSelectionMode) { } else if (userTriggered && this.isMultipleSelectionMode) {
if (this.selectedUuids.has(uuid) && hasMoreThanOneSelected) { if (this.selectedUuids.has(uuid)) {
this.removeSelectedItem(uuid) this.removeSelectedItem(uuid)
} else if (isAuthorizedForAccess) { } else if (isAuthorizedForAccess) {
this.selectedUuids.add(uuid) this.selectedUuids.add(uuid)