Update value with new query

This commit is contained in:
Mel O'Hagan 2022-12-02 15:10:43 +00:00
parent 44293c2179
commit 32285a2a1f
1 changed files with 6 additions and 1 deletions

View File

@ -144,6 +144,11 @@
drawer.show() drawer.show()
} }
const getQueryValue = queries => {
value = queries.find(q => q._id === value._id) || value
return value
}
const saveQueryParams = () => { const saveQueryParams = () => {
handleSelected({ handleSelected({
...value, ...value,
@ -175,7 +180,7 @@
{/if} {/if}
<IntegrationQueryEditor <IntegrationQueryEditor
height={200} height={200}
query={value} query={getQueryValue(queries)}
schema={fetchQueryDefinition(value)} schema={fetchQueryDefinition(value)}
datasource={getQueryDatasource(value)} datasource={getQueryDatasource(value)}
editable={false} editable={false}