Ignore authconfigs for datasources if they are empty
This commit is contained in:
parent
6be703d99a
commit
87c44701d8
|
@ -37,10 +37,13 @@ class QueryRunner {
|
|||
throw "Integration type does not exist."
|
||||
}
|
||||
|
||||
datasource.config.authConfigs = enrichQueryFields(
|
||||
datasource.config.authConfigs,
|
||||
this.ctx
|
||||
if (datasource.config.authConfigs) {
|
||||
datasource.config.authConfigs = datasource.config.authConfigs.map(
|
||||
config => {
|
||||
return enrichQueryFields(config, this.ctx)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
const integration = new Integration(datasource.config)
|
||||
|
||||
|
|
Loading…
Reference in New Issue