Skip to content

Commit

Permalink
fix(query): options without params remove extra bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
anymaniax committed Feb 28, 2023
1 parent 0a3bc6c commit 5ace2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ const generateQueryOptions = ({

if (!params.length) {
if (options) {
return `{${queryConfig} ...queryOptions}`;
return `${queryConfig} ...queryOptions`;
}

return '...queryOptions';
Expand Down

1 comment on commit 5ace2d2

@vercel
Copy link

@vercel vercel bot commented on 5ace2d2 Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.