From fd388c3d36e037f2725b3069b35f71aea90035de Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 18 Dec 2024 15:43:05 +0000 Subject: [PATCH] Fix datasource validity checking --- packages/builder/src/stores/builder/datasources.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }