From 28ae20c3ab8c525c0791e1a10483e40532fa7b24 Mon Sep 17 00:00:00 2001 From: gakshita Date: Mon, 17 Mar 2025 14:25:29 +0530 Subject: [PATCH] fix: build --- web/core/store/favorite.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/store/favorite.store.ts b/web/core/store/favorite.store.ts index d210b723e7b..295dbbc56ac 100644 --- a/web/core/store/favorite.store.ts +++ b/web/core/store/favorite.store.ts @@ -114,9 +114,9 @@ export class FavoriteStore implements IFavoriteStore { data = { ...data, parent: null, is_folder: data.entity_type === "folder" }; if (data.entity_identifier && this.entityMap[data.entity_identifier]) return this.entityMap[data.entity_identifier]; + const id = uuidv4(); try { // optimistic addition - const id = uuidv4(); runInAction(() => { set(this.favoriteMap, [id], data); data.entity_identifier && set(this.entityMap, [data.entity_identifier], data);