From 228478a53023b97ae45a4d6e33eaca8b32b76056 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 3 Nov 2022 17:47:33 +0000 Subject: [PATCH] Fixing an issue which meant validation would consider datasources invalid despite the configuration being valid - #8510 --- .../TableIntegrationMenu/IntegrationConfigForm.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte index e1caa15fd0..05649e1773 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte @@ -44,7 +44,10 @@ // run the validation whenever the config changes $: validation.check(config) // dispatch the validation result - $: dispatch("valid", Object.keys($validation.errors).length === 0) + $: dispatch( + "valid", + Object.values($validation.errors).filter(val => val != null).length === 0 + ) let addButton