π₯π₯π₯ 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 root issue store to have updated url params at all times (#6147)
rahulramesha31b6d5241744
diff --git a/web/core/store/issue/root.store.ts b/web/core/store/issue/root.store.tsindex aa361f05da..f4d794e4d0 100644--- a/web/core/store/issue/root.store.ts+++ b/web/core/store/issue/root.store.ts@@ -169,13 +169,13 @@ export class IssueRootStore implements IIssueRootStore {autorun(() => {if (rootStore?.user?.data?.id) this.currentUserId = rootStore?.user?.data?.id;- if (rootStore.router.workspaceSlug) this.workspaceSlug = rootStore.router.workspaceSlug;- if (rootStore.router.projectId) this.projectId = rootStore.router.projectId;- if (rootStore.router.cycleId) this.cycleId = rootStore.router.cycleId;- if (rootStore.router.moduleId) this.moduleId = rootStore.router.moduleId;- if (rootStore.router.viewId) this.viewId = rootStore.router.viewId;- if (rootStore.router.globalViewId) this.globalViewId = rootStore.router.globalViewId;- if (rootStore.router.userId) this.userId = rootStore.router.userId;+ if (this.workspaceSlug !== rootStore.router.workspaceSlug) this.workspaceSlug = rootStore.router.workspaceSlug;+ if (this.projectId !== rootStore.router.projectId) this.projectId = rootStore.router.projectId;+ if (this.cycleId !== rootStore.router.cycleId) this.cycleId = rootStore.router.cycleId;+ if (this.moduleId !== rootStore.router.moduleId) this.moduleId = rootStore.router.moduleId;+ if (this.viewId !== rootStore.router.viewId) this.viewId = rootStore.router.viewId;+ if (this.globalViewId !== rootStore.router.globalViewId) this.globalViewId = rootStore.router.globalViewId;+ if (this.userId !== rootStore.router.userId) this.userId = rootStore.router.userId;if (!isEmpty(rootStore?.state?.stateMap)) this.stateMap = rootStore?.state?.stateMap;if (!isEmpty(rootStore?.state?.projectStates)) this.stateDetails = rootStore?.state?.projectStates;if (!isEmpty(rootStore?.state?.workspaceStates)) this.workspaceStateDetails = rootStore?.state?.workspaceStates;