feat: filter out empty workpace in sidebar list (#7960)

fix PD-1567
This commit is contained in:
darkskygit
2024-08-28 08:43:44 +00:00
parent 06685683ae
commit dde45748d9
8 changed files with 48 additions and 9 deletions
@@ -1,6 +1,7 @@
query getWorkspaces {
workspaces {
id
initialized
owner {
id
}
@@ -677,6 +677,7 @@ export const getWorkspacesQuery = {
query getWorkspaces {
workspaces {
id
initialized
owner {
id
}
+3
View File
@@ -1203,6 +1203,8 @@ export interface WorkspaceType {
features: Array<FeatureType>;
histories: Array<DocHistoryType>;
id: Scalars['ID']['output'];
/** is current workspace initialized */
initialized: Scalars['Boolean']['output'];
/** member count of workspace */
memberCount: Scalars['Int']['output'];
/** Members of workspace */
@@ -1843,6 +1845,7 @@ export type GetWorkspacesQuery = {
workspaces: Array<{
__typename?: 'WorkspaceType';
id: string;
initialized: boolean;
owner: { __typename?: 'UserType'; id: string };
}>;
};