mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: attempt to stringify request body before parsing (#36586)
This commit is contained in:
1 parent
ab3ed82c60
commit
7960046c96
1 file changed
+1
-1
+1
-1
@@ -159,7 +159,7 @@ export const EdgeFunctionTesterSheet = ({ visible, onClose }: EdgeFunctionTester
|
||||
|
||||
// Validate that the body is valid JSON
|
||||
try {
|
||||
JSON.parse(values.body)
|
||||
JSON.parse(JSON.stringify(values.body))
|
||||
} catch (e) {
|
||||
form.setError('body', { message: 'Must be a valid JSON string' })
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user