Remove unnecessary JSON.stringify from axios requests (#7705)

This commit is contained in:
Luke Heath 2022-09-20 08:57:25 -05:00 committed by GitHub
parent eacc75b585
commit e516c5d450
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -66,6 +66,6 @@ export default {
const { QUERIES } = endpoints;
const path = `${QUERIES}/${id}`;
return sendRequest("PATCH", path, JSON.stringify(updateParams));
return sendRequest("PATCH", path, updateParams);
},
};

View file

@ -28,7 +28,7 @@ export default {
},
initializeSSO: (relay_url: string) => {
const { SSO } = endpoints;
return sendRequest("POST", SSO, JSON.stringify({ relay_url }));
return sendRequest("POST", SSO, { relay_url });
},
ssoSettings: () => {
const { SSO } = endpoints;