Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: build (#6760)

Akshita Goyal807148671f8e
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);