From 807148671f8e23efd5013929947e254064a9c964 Mon Sep 17 00:00:00 2001 From: Akshita Goyal <36129505+gakshita@users.noreply.github.com> Date: Mon, 17 Mar 2025 14:38:46 +0530 Subject: [PATCH] fix: build (#6760) --- 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 d210b723e7..295dbbc56a 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);