Skip to content

Commit 5ace2d2

Browse files
committedFeb 28, 2023
fix(query): options without params remove extra bracket
1 parent 0a3bc6c commit 5ace2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/query/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ const generateQueryOptions = ({
428428

429429
if (!params.length) {
430430
if (options) {
431-
return `{${queryConfig} ...queryOptions}`;
431+
return `${queryConfig} ...queryOptions`;
432432
}
433433

434434
return '...queryOptions';

1 commit comments

Comments
 (1)

vercel[bot] commented on Feb 28, 2023

@vercel[bot]
Please sign in to comment.