1
0
Fork 0
mirror of synced 2024-09-11 06:56:23 +12:00

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

View file

@ -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}
<IntegrationQueryEditor
height={200}
query={value}
query={getQueryValue(queries)}
schema={fetchQueryDefinition(value)}
datasource={getQueryDatasource(value)}
editable={false}