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
mobile: fix note assigned to multiple colors
Ammar Ahmedcd62069b9b53
diff --git a/apps/mobile/app/components/properties/color-tags.tsx b/apps/mobile/app/components/properties/color-tags.tsxindex 6d98e8d6e..d26b87ef1 100644--- a/apps/mobile/app/components/properties/color-tags.tsx+++ b/apps/mobile/app/components/properties/color-tags.tsx@@ -51,7 +51,15 @@ const ColorItem = ({ item, note }: { item: Color; note: Note }) => {}, [item, note.id]);const toggleColor = async () => {- await db.relations.unlinkOfType("color", [item.id]);+ await db.relations+ .to(+ {+ type: "note",+ id: note.id+ },+ "color"+ )+ .unlink();if (!isLinked) {await db.relations.add(item, note);