POST hotfix

This commit is contained in:
Sean Edmunds
2024-12-05 14:52:28 -06:00
parent 407cff06c0
commit 55ca40ab8a

View File

@@ -94,7 +94,7 @@ export function useMutationAPI() {
body: JSON.stringify(body),
};
const response = await fetch(url, options);
const response = await fetch(`${url}/${endpoint}`, options);
if (!response.ok) {
const responseData = await response.json();
if (typeof responseData.detail !== 'string') {