Fix datasource validity checking
This commit is contained in:
parent
7bd91518da
commit
fd388c3d36
|
@ -220,7 +220,7 @@ export class DatasourceStore extends BudiStore<DerivedDatasourceStore> {
|
||||||
integration: Integration
|
integration: Integration
|
||||||
datasource: Datasource
|
datasource: Datasource
|
||||||
}) {
|
}) {
|
||||||
if (await this.checkDatasourceValidity(integration, datasource)) {
|
if (!(await this.checkDatasourceValidity(integration, datasource)).valid) {
|
||||||
throw new Error("Unable to connect")
|
throw new Error("Unable to connect")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue