Merge pull request #8486 from Budibase/bug/sev2/query-viewer-bindings

Fix query viewer bindings
This commit is contained in:
melohagan 2022-11-02 14:10:16 +00:00 committed by GitHub
commit ccede8b8a3
2 changed files with 15 additions and 9 deletions

View File

@ -132,7 +132,20 @@
config={integrationInfo.extra}
/>
{/if}
<BindingBuilder bind:queryBindings={query.parameters} bindable={false} />
{#key query.parameters}
<BindingBuilder
queryBindings={query.parameters}
bindable={false}
on:change={e => {
query.parameters = e.detail.map(binding => {
return {
name: binding.name,
default: binding.value,
}
})
}}
/>
{/key}
{/if}
</div>
{#if shouldShowQueryConfig}

View File

@ -44,14 +44,7 @@
valuePlaceholder="Default"
bindings={[...userBindings]}
bindingDrawerLeft="260px"
on:change={e => {
queryBindings = e.detail.map(binding => {
return {
name: binding.name,
default: binding.value,
}
})
}}
on:change
/>
</div>
</Layout>