diff --git a/packages/builder/src/stores/builder/datasources.ts b/packages/builder/src/stores/builder/datasources.ts index 6eeaeceaaf..e02774f1d5 100644 --- a/packages/builder/src/stores/builder/datasources.ts +++ b/packages/builder/src/stores/builder/datasources.ts @@ -220,7 +220,7 @@ export class DatasourceStore extends BudiStore { integration: Integration datasource: Datasource }) { - if (await this.checkDatasourceValidity(integration, datasource)) { + if (!(await this.checkDatasourceValidity(integration, datasource)).valid) { throw new Error("Unable to connect") }