From 6b58549fd9f896a0b7e4f0083e54ac4c8cd1de35 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 22 Jul 2024 16:34:14 +0200 Subject: [PATCH] Fix issues with circular references and barrel files --- packages/server/src/sdk/app/automations/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/sdk/app/automations/utils.ts b/packages/server/src/sdk/app/automations/utils.ts index 5ce0292ffd..52ed935f3b 100644 --- a/packages/server/src/sdk/app/automations/utils.ts +++ b/packages/server/src/sdk/app/automations/utils.ts @@ -5,7 +5,6 @@ import { AutomationTriggerStepId, TableRowActions, } from "@budibase/types" -import sdk from "../../../sdk" export function checkForCollectStep(automation: Automation) { return automation.definition.steps.some( @@ -16,6 +15,8 @@ export function checkForCollectStep(automation: Automation) { export async function getBuilderData( automations: Automation[] ): Promise> { + const sdk = (await import("../../../sdk")).default + const tableNameCache: Record = {} async function getTableName(tableId: string) { if (!tableNameCache[tableId]) {