From f0ef9e072eccd15de4374174a1663dc90ccb18e8 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Wed, 28 Feb 2024 12:52:14 +0500 Subject: [PATCH] mobile: cleanup --- apps/mobile/app/components/properties/color-tags.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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);