diff --git a/services/web/frontend/js/infrastructure/fetch-json.ts b/services/web/frontend/js/infrastructure/fetch-json.ts index bfcc0f7f65..61d96bacce 100644 --- a/services/web/frontend/js/infrastructure/fetch-json.ts +++ b/services/web/frontend/js/infrastructure/fetch-json.ts @@ -103,7 +103,7 @@ export class FetchError extends OError { function fetchJSON( path: FetchPath, { - body = {}, + body, headers = {}, method = 'GET', credentials = 'same-origin', @@ -123,7 +123,7 @@ function fetchJSON( method, } - if (method !== 'GET' && method !== 'HEAD') { + if (body !== undefined) { options.body = JSON.stringify(body) }