From 0a1912e42c2119fe5e2eea122729bcfda5d92579 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 16 Oct 2024 11:56:52 +0100 Subject: [PATCH 1/2] Don't extend dataprovider queries when no extensions are in use --- packages/client/src/components/app/DataProvider.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/client/src/components/app/DataProvider.svelte b/packages/client/src/components/app/DataProvider.svelte index 7b5187ffb6..054264a9e1 100644 --- a/packages/client/src/components/app/DataProvider.svelte +++ b/packages/client/src/components/app/DataProvider.svelte @@ -126,6 +126,9 @@ } const extendQuery = (defaultQuery, extensions) => { + if (!Object.keys(extensions).length) { + return + } const extended = { [LogicalOperator.AND]: { conditions: [ From 46b9877455e638d29071dd763a8e6947d738a8a1 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 16 Oct 2024 15:15:23 +0100 Subject: [PATCH 2/2] Return default query --- packages/client/src/components/app/DataProvider.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/app/DataProvider.svelte b/packages/client/src/components/app/DataProvider.svelte index 054264a9e1..e6629aa3f3 100644 --- a/packages/client/src/components/app/DataProvider.svelte +++ b/packages/client/src/components/app/DataProvider.svelte @@ -127,7 +127,7 @@ const extendQuery = (defaultQuery, extensions) => { if (!Object.keys(extensions).length) { - return + return defaultQuery } const extended = { [LogicalOperator.AND]: {