diff --git a/src/services/Project.ts b/src/services/Project.ts index bcde1b930..dd17606bc 100644 --- a/src/services/Project.ts +++ b/src/services/Project.ts @@ -106,21 +106,16 @@ class ProjectService { data: CreateProjectPayload, ): Promise => { const { advancedSettings, ...subCommonData } = data; - const { - data: { circleProjectSubcommon }, - } = await Api.post<{ circleProjectSubcommon: Common }>( - ApiEndpoint.CreateAction, - { - type: GovernanceActions.CREATE_SUBCOMMON, - args: { - commonId: parentCommonId, - subcommonDefinition: subCommonData, - ...advancedSettings, - }, + const { data: project } = await Api.post(ApiEndpoint.CreateAction, { + type: GovernanceActions.CREATE_SUBCOMMON, + args: { + commonId: parentCommonId, + subcommonDefinition: subCommonData, + ...advancedSettings, }, - ); + }); - return circleProjectSubcommon; + return project; }; }