mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 04:37:44 +02:00
Fix favorites (#9020)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -39,13 +39,13 @@
|
||||
|
||||
let activeAction: string | undefined = undefined
|
||||
|
||||
function toggleFavoriteCard (_id: Ref<Card>): 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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user