Update value with new query
This commit is contained in:
parent
44293c2179
commit
32285a2a1f
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue