fix root issue store to have updated url params at all times (#6147)
This commit is contained in:
parent
a153de34d6
commit
31b6d52417
1 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue