Skip to content

Commit

Permalink
fix(apitest.jsx): post not working correctly due to body json handled…
Browse files Browse the repository at this point in the history
… wrong
  • Loading branch information
junglesub committed Aug 1, 2024
1 parent f3d762c commit 1cc2a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ApiTest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function ApiTest() {
};

const sendApiRequest = () => {
fetchBe(jwtValue, targetEndPoint, requestType, requestData)
fetchBe(jwtValue, targetEndPoint, requestType, JSON.parse(requestData))
.then((json) => setResponseData(json))
.catch((e) => setResponseData(e.message));
};
Expand Down

0 comments on commit 1cc2a26

Please sign in to comment.