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
fix: do not delete published notes in multi select mode
thecodrrfee534dffb95
diff --git a/apps/web/src/common/selectionoptions.js b/apps/web/src/common/selectionoptions.jsindex b0211a4e8..0ab35d628 100644--- a/apps/web/src/common/selectionoptions.js+++ b/apps/web/src/common/selectionoptions.js@@ -36,7 +36,7 @@ const DeleteOption = createOption(var isAnyNoteOpened = false;const items = state.selectedItems.map((item) => {if (item.id === editorStore.get().session.id) isAnyNoteOpened = true;- if (item.locked) return 0;+ if (item.locked || db.monographs.isPublished(item.id)) return 0;return item.id;});