π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: reloading on favorite action (#5313)
Akshita Goyal806eae0139aa
diff --git a/web/core/store/project/project.store.ts b/web/core/store/project/project.store.tsindex faebabf15d..f22a5d47df 100644--- a/web/core/store/project/project.store.ts+++ b/web/core/store/project/project.store.ts@@ -285,7 +285,6 @@ export class ProjectStore implements IProjectStore {project_id: projectId,entity_data: { name: this.projectMap[projectId].name || "" },});- await this.fetchProjects(workspaceSlug);return response;} catch (error) {console.log("Failed to add project to favorite");@@ -306,12 +305,11 @@ export class ProjectStore implements IProjectStore {try {const currentProject = this.getProjectById(projectId);if (!currentProject.is_favorite) return;- const response = await this.rootStore.favorite.removeFavoriteEntity(workspaceSlug.toString(), projectId);-runInAction(() => {set(this.projectMap, [projectId, "is_favorite"], false);});- await this.fetchProjects(workspaceSlug);+ const response = await this.rootStore.favorite.removeFavoriteEntity(workspaceSlug.toString(), projectId);+return response;} catch (error) {console.log("Failed to add project to favorite");