diff --git a/apps/mobile/app/components/properties/color-tags.tsx b/apps/mobile/app/components/properties/color-tags.tsx index 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);