Skip to content

Commit 02c6fe8

Browse files
Fix favorites (#9020)
Signed-off-by: Kristina Fefelova <[email protected]>
1 parent ad13daf commit 02c6fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/card-resources/src/components/navigator-next/NavigatorCard.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
4040
let activeAction: string | undefined = undefined
4141
42-
function toggleFavoriteCard (_id: Ref<Card>): void {
42+
function toggleFavoriteCard (): void {
4343
if (favorite !== undefined) {
4444
void client.remove(favorite)
4545
} else {
4646
void client.createDoc(cardPlugin.class.FavoriteCard, core.space.Workspace, {
4747
application: applicationId,
48-
attachedTo: _id
48+
attachedTo: card._id
4949
})
5050
}
5151
}

0 commit comments

Comments
 (0)