diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index c2ad6324f7..5806189caa 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -218,7 +218,11 @@ } onMount(async () => { - await environment.loadVariables() + try { + await environment.loadVariables() + } catch (error) { + console.error(error) + } }) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte index 7386690348..56b619f5f8 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte @@ -96,10 +96,13 @@ } onMount(async () => { - await environment.loadVariables() - - if ($auth.user) { - await licensing.init() + try { + await environment.loadVariables() + if ($auth.user) { + await licensing.init() + } + } catch (err) { + console.error(err) } }) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte index 282ba712a6..60a7a9f30b 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte @@ -17,6 +17,7 @@ runtimeToReadableMap, } from "builderStore/dataBinding" import { cloneDeep } from "lodash/fp" + import { licensing } from "stores/portal" export let datasource export let queries @@ -94,7 +95,9 @@ headings bind:object={datasource.config.staticVariables} on:change - bindings={getEnvironmentBindings()} + bindings={$licensing.environmentVariablesEnabled + ? getEnvironmentBindings() + : []} />
diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte index d30ed72c94..f4dab4bb61 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte @@ -45,10 +45,13 @@ let formFieldkey onMount(async () => { - await environment.loadVariables() - - if ($auth.user) { - await licensing.init() + try { + await environment.loadVariables() + if ($auth.user) { + await licensing.init() + } + } catch (err) { + console.error(err) } if (currentConfig) { diff --git a/packages/builder/src/components/integration/KeyValueBuilder.svelte b/packages/builder/src/components/integration/KeyValueBuilder.svelte index 18715e2fe7..5d35498cfe 100644 --- a/packages/builder/src/components/integration/KeyValueBuilder.svelte +++ b/packages/builder/src/components/integration/KeyValueBuilder.svelte @@ -105,7 +105,7 @@ > {#each fields as field, idx} ds._id === query?.datasourceId) diff --git a/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte b/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte index 7cf2270c49..b456a29621 100644 --- a/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte +++ b/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte @@ -41,7 +41,7 @@ }) notifications.success("Environment variable saved") } catch (err) { - notifications.error("Error saving environment variable") + notifications.error(`Error saving environment variable - ${err.message}`) } } diff --git a/packages/builder/src/pages/builder/portal/settings/environment/_components/EditVariableColumn.svelte b/packages/builder/src/pages/builder/portal/settings/environment/_components/EditVariableColumn.svelte index c4f5bf8e55..fd754fa006 100644 --- a/packages/builder/src/pages/builder/portal/settings/environment/_components/EditVariableColumn.svelte +++ b/packages/builder/src/pages/builder/portal/settings/environment/_components/EditVariableColumn.svelte @@ -9,8 +9,8 @@ let editVariableModal let deleteDialog - const save = data => { - environment.updateVariable(data) + const save = async data => { + await environment.updateVariable(data) editVariableModal.hide() } @@ -23,8 +23,8 @@