fix: workspace members store added and implemented across the app (#2732)
* fix: minor changes * fix: workspace members store added and implemnted across the app
This commit is contained in:
parent
556b2d2617
commit
a6567bbce4
28 changed files with 529 additions and 352 deletions
|
|
@ -28,7 +28,7 @@ export interface IProjectStore {
|
|||
|
||||
// computed
|
||||
searchedProjects: IProject[];
|
||||
workspaceProjects: IProject[];
|
||||
workspaceProjects: IProject[] | null;
|
||||
projectLabels: IIssueLabels[] | null;
|
||||
projectMembers: IProjectMember[] | null;
|
||||
projectEstimates: IEstimate[] | null;
|
||||
|
|
@ -183,8 +183,10 @@ export class ProjectStore implements IProjectStore {
|
|||
}
|
||||
|
||||
get workspaceProjects() {
|
||||
if (!this.rootStore.workspace.workspaceSlug) return [];
|
||||
return this.projects?.[this.rootStore.workspace.workspaceSlug];
|
||||
if (!this.rootStore.workspace.workspaceSlug) return null;
|
||||
const projects = this.projects[this.rootStore.workspace.workspaceSlug];
|
||||
if (!projects) return null;
|
||||
return projects;
|
||||
}
|
||||
|
||||
get currentProjectDetails() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue