Skip to content

Commit 8c2572f

Browse files
committed
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.
1 parent 6444d1f commit 8c2572f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/query-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class RegularExternalCommunicationDelegate
137137
const requestInit: RequestInit =
138138
postData !== undefined
139139
? {
140-
body: JSON.stringify(postData),
140+
body: postData,
141141
method: 'POST',
142142
mode: 'cors',
143143
credentials: 'omit',

0 commit comments

Comments
 (0)