Skip to content

Commit 7960046

Browse files
authored
fix: attempt to stringify request body before parsing (supabase#36586)
1 parent ab3ed82 commit 7960046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const EdgeFunctionTesterSheet = ({ visible, onClose }: EdgeFunctionTester
159159

160160
// Validate that the body is valid JSON
161161
try {
162-
JSON.parse(values.body)
162+
JSON.parse(JSON.stringify(values.body))
163163
} catch (e) {
164164
form.setError('body', { message: 'Must be a valid JSON string' })
165165
return

0 commit comments

Comments
 (0)