Skip to content

Commit

Permalink
Merge pull request #2562 from daostack/bugfix/CW-2561-redirect-issue
Browse files Browse the repository at this point in the history
Redirect issue after new space creation #2561
  • Loading branch information
budnik9 authored Mar 5, 2024
2 parents 0152dba + e863742 commit 8831b53
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/services/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,21 +106,16 @@ class ProjectService {
data: CreateProjectPayload,
): Promise<Common> => {
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<Common>(ApiEndpoint.CreateAction, {
type: GovernanceActions.CREATE_SUBCOMMON,
args: {
commonId: parentCommonId,
subcommonDefinition: subCommonData,
...advancedSettings,
},
);
});

return circleProjectSubcommon;
return project;
};
}

Expand Down

0 comments on commit 8831b53

Please sign in to comment.