From 02c6fe829bcce4a98725fa1022f83d62381ea0ab Mon Sep 17 00:00:00 2001 From: Kristina Date: Wed, 21 May 2025 22:08:52 +0400 Subject: [PATCH] Fix favorites (#9020) Signed-off-by: Kristina Fefelova --- .../src/components/navigator-next/NavigatorCard.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/card-resources/src/components/navigator-next/NavigatorCard.svelte b/plugins/card-resources/src/components/navigator-next/NavigatorCard.svelte index 4d3dbfb495..b5d0933ff2 100644 --- a/plugins/card-resources/src/components/navigator-next/NavigatorCard.svelte +++ b/plugins/card-resources/src/components/navigator-next/NavigatorCard.svelte @@ -39,13 +39,13 @@ let activeAction: string | undefined = undefined - function toggleFavoriteCard (_id: Ref): void { + function toggleFavoriteCard (): void { if (favorite !== undefined) { void client.remove(favorite) } else { void client.createDoc(cardPlugin.class.FavoriteCard, core.space.Workspace, { application: applicationId, - attachedTo: _id + attachedTo: card._id }) } }