diff --git a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx index 5d667a6c..716273f9 100644 --- a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx +++ b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx @@ -113,7 +113,7 @@ const ProjectGroupList: React.FC = () => { - {record.applications?.length || 0} + {record?.totalApplications || 0} ), diff --git a/frontend/src/pages/Deploy/ProjectGroup/List/types.ts b/frontend/src/pages/Deploy/ProjectGroup/List/types.ts index 487de5bd..062850d7 100644 --- a/frontend/src/pages/Deploy/ProjectGroup/List/types.ts +++ b/frontend/src/pages/Deploy/ProjectGroup/List/types.ts @@ -1,6 +1,4 @@ import {BaseResponse, BaseRequest, BaseQuery} from '@/types/base'; -import {Environment} from '../../Environment/List/types'; -import {Application} from "@/pages/Deploy/Application/List/types"; export enum ProjectGroupTypeEnum { PRODUCT = 'PRODUCT', @@ -15,8 +13,7 @@ export interface ProjectGroup extends BaseResponse { projectGroupName: string; projectGroupDesc?: string; enabled: boolean; - environments: Environment[]; - applications: Application[]; + totalApplications: number; sort: number; }