@@ -15,7 +15,6 @@ import {
1515// root store
1616import { RootStore } from "@/plane-web/store/root.store" ;
1717import { IWorkspaceMembership } from "@/store/member/workspace-member.store" ;
18- import { IStateStore , StateStore } from "../state.store" ;
1918// issues data store
2019import { IArchivedIssuesFilter , ArchivedIssuesFilter , IArchivedIssues , ArchivedIssues } from "./archived" ;
2120import { ICycleIssuesFilter , CycleIssuesFilter , ICycleIssues , CycleIssues } from "./cycle" ;
@@ -44,7 +43,7 @@ import {
4443export interface IIssueRootStore {
4544 currentUserId : string | undefined ;
4645 workspaceSlug : string | undefined ;
47- teamId : string | undefined ;
46+ teamspaceId : string | undefined ;
4847 projectId : string | undefined ;
4948 cycleId : string | undefined ;
5049 moduleId : string | undefined ;
@@ -112,7 +111,7 @@ export interface IIssueRootStore {
112111export class IssueRootStore implements IIssueRootStore {
113112 currentUserId : string | undefined = undefined ;
114113 workspaceSlug : string | undefined = undefined ;
115- teamId : string | undefined = undefined ;
114+ teamspaceId : string | undefined = undefined ;
116115 projectId : string | undefined = undefined ;
117116 cycleId : string | undefined = undefined ;
118117 moduleId : string | undefined = undefined ;
@@ -179,7 +178,7 @@ export class IssueRootStore implements IIssueRootStore {
179178 constructor ( rootStore : RootStore , serviceType : TIssueServiceType = EIssueServiceType . ISSUES ) {
180179 makeObservable ( this , {
181180 workspaceSlug : observable . ref ,
182- teamId : observable . ref ,
181+ teamspaceId : observable . ref ,
183182 projectId : observable . ref ,
184183 cycleId : observable . ref ,
185184 moduleId : observable . ref ,
@@ -203,7 +202,7 @@ export class IssueRootStore implements IIssueRootStore {
203202 autorun ( ( ) => {
204203 if ( rootStore ?. user ?. data ?. id ) this . currentUserId = rootStore ?. user ?. data ?. id ;
205204 if ( this . workspaceSlug !== rootStore . router . workspaceSlug ) this . workspaceSlug = rootStore . router . workspaceSlug ;
206- if ( this . teamId !== rootStore . router . teamId ) this . teamId = rootStore . router . teamId ;
205+ if ( this . teamspaceId !== rootStore . router . teamspaceId ) this . teamspaceId = rootStore . router . teamspaceId ;
207206 if ( this . projectId !== rootStore . router . projectId ) this . projectId = rootStore . router . projectId ;
208207 if ( this . cycleId !== rootStore . router . cycleId ) this . cycleId = rootStore . router . cycleId ;
209208 if ( this . moduleId !== rootStore . router . moduleId ) this . moduleId = rootStore . router . moduleId ;
0 commit comments