Load environment on automations

This commit is contained in:
Adria Navarro 2025-03-25 14:18:48 +01:00
parent 9a09837722
commit 3e59fcdbbb
1 changed files with 10 additions and 1 deletions

View File

@ -23,6 +23,7 @@
import CreateWebhookModal from "@/components/automation/Shared/CreateWebhookModal.svelte" import CreateWebhookModal from "@/components/automation/Shared/CreateWebhookModal.svelte"
import { automationStore, tables, evaluationContext } from "@/stores/builder" import { automationStore, tables, evaluationContext } from "@/stores/builder"
import { environment } from "@/stores/portal"
import WebhookDisplay from "../Shared/WebhookDisplay.svelte" import WebhookDisplay from "../Shared/WebhookDisplay.svelte"
import { import {
BindingSidePanel, BindingSidePanel,
@ -57,7 +58,7 @@
} from "@budibase/frontend-core" } from "@budibase/frontend-core"
import { getSchemaForDatasourcePlus } from "@/dataBinding" import { getSchemaForDatasourcePlus } from "@/dataBinding"
import { TriggerStepID, ActionStepID } from "@/constants/backend/automations" import { TriggerStepID, ActionStepID } from "@/constants/backend/automations"
import { createEventDispatcher } from "svelte" import { onMount, createEventDispatcher } from "svelte"
import { writable } from "svelte/store" import { writable } from "svelte/store"
import { cloneDeep } from "lodash/fp" import { cloneDeep } from "lodash/fp"
import { import {
@ -771,6 +772,14 @@
} }
return params return params
} }
onMount(async () => {
try {
await environment.loadVariables()
} catch (error) {
console.error(error)
}
})
</script> </script>
<div class="step-fields"> <div class="step-fields">