Undo async import
This commit is contained in:
parent
7ffe8d4b4a
commit
92a26d4272
|
@ -5,6 +5,7 @@ import {
|
||||||
TableRowActions,
|
TableRowActions,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import { sdk as coreSdk } from "@budibase/shared-core"
|
import { sdk as coreSdk } from "@budibase/shared-core"
|
||||||
|
import sdk from "../../../sdk"
|
||||||
|
|
||||||
export function checkForCollectStep(automation: Automation) {
|
export function checkForCollectStep(automation: Automation) {
|
||||||
return automation.definition.steps.some(
|
return automation.definition.steps.some(
|
||||||
|
@ -15,8 +16,6 @@ export function checkForCollectStep(automation: Automation) {
|
||||||
export async function getBuilderData(
|
export async function getBuilderData(
|
||||||
automations: Automation[]
|
automations: Automation[]
|
||||||
): Promise<Record<string, AutomationBuilderData>> {
|
): Promise<Record<string, AutomationBuilderData>> {
|
||||||
const sdk = (await import("../../../sdk")).default
|
|
||||||
|
|
||||||
const tableNameCache: Record<string, string> = {}
|
const tableNameCache: Record<string, string> = {}
|
||||||
async function getTableName(tableId: string) {
|
async function getTableName(tableId: string) {
|
||||||
if (!tableNameCache[tableId]) {
|
if (!tableNameCache[tableId]) {
|
||||||
|
|
Loading…
Reference in New Issue