Skip to content

Commit 4450db5

Browse files
committed
Added missing content-type headers to verify-unique-types request
1 parent 87fdb75 commit 4450db5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/components/v2/workflow/RunWorkflowModal.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,12 @@
251251
*/
252252
async function preSubmissionCheck(params) {
253253
preSubmissionCheckResults = [];
254+
const headers = new Headers();
255+
headers.set('Content-Type', 'application/json');
254256
const response = await fetch(
255257
`/api/v2/project/${workflow.project_id}/dataset/${selectedDatasetId}/images/verify-unique-types`,
256258
{
259+
headers,
257260
method: 'POST',
258261
credentials: 'include',
259262
body: JSON.stringify(params)

0 commit comments

Comments
 (0)