Skip to content

Commit 142890d

Browse files
authored
Don't stringify JSON again in fetchUrlResponse (#5570)
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.
2 parents 4d20d1c + a79ec62 commit 142890d

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)