Addressing PR comments.
This commit is contained in:
parent
92ac417fdf
commit
a91ecb8c14
|
@ -95,9 +95,9 @@ async function invalidateVariables(
|
||||||
updatedDatasource: Datasource
|
updatedDatasource: Datasource
|
||||||
) {
|
) {
|
||||||
const existingVariables: DynamicVariable[] =
|
const existingVariables: DynamicVariable[] =
|
||||||
existingDatasource.config?.dynamicVariables
|
existingDatasource.config?.dynamicVariables || []
|
||||||
const updatedVariables: DynamicVariable[] =
|
const updatedVariables: DynamicVariable[] =
|
||||||
updatedDatasource.config?.dynamicVariables
|
updatedDatasource.config?.dynamicVariables || []
|
||||||
const toInvalidate = []
|
const toInvalidate = []
|
||||||
|
|
||||||
if (!existingVariables) {
|
if (!existingVariables) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ export interface RowResponse<T extends Document | RowValue> {
|
||||||
id: string
|
id: string
|
||||||
key: string
|
key: string
|
||||||
error: string
|
error: string
|
||||||
value: T | RowValue
|
value: T
|
||||||
doc?: T
|
doc?: T
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue