Skip to content

Commit

Permalink
subcommunity: added projectId to the payload
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 committed Jun 25, 2024
1 parent cbcb609 commit 9d88fee
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,18 @@ class CommunityCreateForm extends Component {
const { communityId } = this.props;
let payload = {};
let slug = "";
let projectId = "";
if (hasCommunity) {
slug = values["metadata"]["community"];
payload = { community_id: slug };
} else {
slug = values["metadata"]["slug"];
projectId = values["metadata"]["project"];
payload = {
community: {
title: values["metadata"]["title"],
slug: slug,
projectId: projectId,
},
};
}
Expand Down

0 comments on commit 9d88fee

Please sign in to comment.