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 assigning a color removes that color from all other notes
Abdullah Atta357d872362ba
diff --git a/apps/web/src/stores/note-store.ts b/apps/web/src/stores/note-store.tsindex 4fbb92a74..4498417d1 100644--- a/apps/web/src/stores/note-store.ts+++ b/apps/web/src/stores/note-store.ts@@ -111,7 +111,7 @@ class NoteStore extends BaseStore<NoteStore> {};setColor = async (colorId: string, isChecked: boolean, ...ids: string[]) => {- await db.relations.from({ type: "color", id: colorId }, "note").unlink();+ await db.relations.to({ type: "note", ids }, "color").unlink();if (!isChecked) {for (const id of ids) {await db.relations.add(