diff --git a/frontend/src/components/files/UploadURDF.tsx b/frontend/src/components/files/UploadURDF.tsx index 57d741da..308a197b 100644 --- a/frontend/src/components/files/UploadURDF.tsx +++ b/frontend/src/components/files/UploadURDF.tsx @@ -108,7 +108,7 @@ const URDFUploadComponent = () => { const formData = new FormData(); formData.append("file", selectedFile); - const { response, error } = await APICalls.upload(selectedFile, { + const { error } = await APICalls.upload(selectedFile, { artifact_type: "image", listing_id: "5", }); diff --git a/frontend/src/hooks/ApiCalls.tsx b/frontend/src/hooks/ApiCalls.tsx index a1139031..250a3a38 100644 --- a/frontend/src/hooks/ApiCalls.tsx +++ b/frontend/src/hooks/ApiCalls.tsx @@ -12,7 +12,7 @@ export const APICalls = { file: "", metadata: "image", }, - bodySerializer(body) { + bodySerializer() { const fd = new FormData(); fd.append("file", file); fd.append("metadata", JSON.stringify(request));