Skip to content

Commit

Permalink
modal: fix record adding to a community
Browse files Browse the repository at this point in the history
* closes #2821
  • Loading branch information
jrcastro2 committed Sep 3, 2024
1 parent 0fbb4db commit 56893c6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@ export class RecordCommunitySubmissionModal extends Component {
],
};
}
const response = await http.post(recordCommunityEndpoint, data);
// When adding communities to a record, it should simple return the json representation of the response
// no need to process the response with the schema serializer
const response = await http.post(recordCommunityEndpoint, data, {
headers: {
"Accept": "application/json",
"Content-Type": "application/json",
},
});
this.handleSuccessSubmit(response.data);
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 56893c6

Please sign in to comment.