From 1975af430a728ff7b44068d12fbaad71299fe66f Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 20 Jan 2022 15:44:39 +0000 Subject: [PATCH 1/2] Fix for #4126 - wrong bindings were being passed to the drawer, making sure correct ones are available. --- .../src/components/integration/QueryBindingBuilder.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/integration/QueryBindingBuilder.svelte b/packages/builder/src/components/integration/QueryBindingBuilder.svelte index dd688dceb6..3161e2ae48 100644 --- a/packages/builder/src/components/integration/QueryBindingBuilder.svelte +++ b/packages/builder/src/components/integration/QueryBindingBuilder.svelte @@ -72,7 +72,7 @@ bindableOptions, customParams?.[binding.name] )} - {bindableOptions} + bind:bindings={bindableOptions} /> {:else} deleteQueryBinding(idx)} /> From c6de0f3d306602c8bb53a0e8b0896f69f35fd665 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 20 Jan 2022 16:12:32 +0000 Subject: [PATCH 2/2] Renaming bindableOptions to bindings and replacing the query bindings variable with queryBindings. --- .../actions/ExecuteQuery.svelte | 4 ++-- .../PropertyControls/DataSourceSelect.svelte | 4 ++-- .../integration/QueryBindingBuilder.svelte | 21 +++++++++---------- .../components/integration/QueryViewer.svelte | 2 +- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExecuteQuery.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExecuteQuery.svelte index 88c7e87054..8c438e4b22 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExecuteQuery.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExecuteQuery.svelte @@ -55,8 +55,8 @@
0} {/if} @@ -49,7 +48,7 @@ {/if}
- {#each bindings as binding, idx} + {#each queryBindings as binding, idx} onBindingChange(binding.name, evt.detail)} value={runtimeToReadableBinding( - bindableOptions, + bindings, customParams?.[binding.name] )} - bind:bindings={bindableOptions} + {bindings} /> {:else} deleteQueryBinding(idx)} /> diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index f14d1d2b88..c6ae7c4ce8 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -120,7 +120,7 @@ config={integrationInfo.extra} /> {/if} - + {/if}
{#if shouldShowQueryConfig}