Skip to content

Commit c2554a7

Browse files
committedFeb 19, 2023
fix(core): request options without second argument correctly stringify
1 parent b26ce92 commit c2554a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/core/src/generators/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export const generateMutatorRequestOptions = (
264264
) => {
265265
if (!hasSecondArgument) {
266266
return isObject(requestOptions)
267-
? stringify(requestOptions)?.slice(1, -1)
267+
? `{${stringify(requestOptions)?.slice(1, -1)}}`
268268
: '';
269269
}
270270

1 commit comments

Comments
 (1)

vercel[bot] commented on Feb 19, 2023

@vercel[bot]
Please sign in to comment.