diff --git a/apps/mobile/app/components/properties/color-tags.tsx b/apps/mobile/app/components/properties/color-tags.tsx index d26b87ef1..e7c1ce0e0 100644 --- a/apps/mobile/app/components/properties/color-tags.tsx +++ b/apps/mobile/app/components/properties/color-tags.tsx @@ -51,15 +51,7 @@ const ColorItem = ({ item, note }: { item: Color; note: Note }) => { }, [item, note.id]); const toggleColor = async () => { - await db.relations - .to( - { - type: "note", - id: note.id - }, - "color" - ) - .unlink(); + await db.relations.to(note, "color").unlink(); if (!isLinked) { await db.relations.add(item, note);