From 5ace2d2dd969d8b3908d66b175e7519b7d5f559c Mon Sep 17 00:00:00 2001 From: anymaniax Date: Tue, 28 Feb 2023 23:35:28 +0100 Subject: [PATCH] fix(query): options without params remove extra bracket --- packages/query/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/query/src/index.ts b/packages/query/src/index.ts index 15f7aaae0..699181d4a 100644 --- a/packages/query/src/index.ts +++ b/packages/query/src/index.ts @@ -428,7 +428,7 @@ const generateQueryOptions = ({ if (!params.length) { if (options) { - return `{${queryConfig} ...queryOptions}`; + return `${queryConfig} ...queryOptions`; } return '...queryOptions';