A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix multi-selection in manage attachments dialog
Abdullah Atta52d08f9392c5
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex 151c4e69f..8e7e5abe8 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -92,7 +92,7 @@ function ListItem(props) {.get().selectedItems.filter((i) => i.type === props.item.type);- if (selectedItems.indexOf(props.item) === -1) {+ if (selectedItems.findIndex((i) => i.id === props.item.id) === -1) {selectedItems = [];selectedItems.push(props.item);}