From 3ec5331792babff1a3287d71dd7019c57a83db16 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Fri, 2 Dec 2022 15:10:43 +0000 Subject: [PATCH] Update value with new query --- .../design/settings/controls/DataSourceSelect.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte b/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte index 55a9a30eb3..6269599f40 100644 --- a/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte +++ b/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte @@ -144,6 +144,11 @@ drawer.show() } + const getQueryValue = queries => { + value = queries.find(q => q._id === value._id) || value + return value + } + const saveQueryParams = () => { handleSelected({ ...value, @@ -175,7 +180,7 @@ {/if}