From 8c2572f67a949e8165756d95f43b784af76f8f81 Mon Sep 17 00:00:00 2001 From: Ryan Hunt Date: Mon, 25 Aug 2025 16:25:01 -0500 Subject: [PATCH] Don't stringify JSON again in fetchUrlResponse fetchUrlResponse is called from queryApiWithFallback and is given stringified JSON data, but then stringifies the string again. This leads to errors when trying to view source files with a local samply server. --- src/utils/query-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/query-api.ts b/src/utils/query-api.ts index 313f9d881f..ac5798b519 100644 --- a/src/utils/query-api.ts +++ b/src/utils/query-api.ts @@ -137,7 +137,7 @@ export class RegularExternalCommunicationDelegate const requestInit: RequestInit = postData !== undefined ? { - body: JSON.stringify(postData), + body: postData, method: 'POST', mode: 'cors', credentials: 'omit',