Update value with new query
This commit is contained in:
parent
44293c2179
commit
32285a2a1f
1 changed files with 6 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue