fix: build (#6760)

This commit is contained in:
Akshita Goyal
2025-03-17 14:38:46 +05:30
committed by GitHub
parent d2b81ad2da
commit 807148671f

View File

@@ -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);