diff --git a/packages/client/src/components/app/forms/Form.svelte b/packages/client/src/components/app/forms/Form.svelte index 88333f7565..2071e85fcc 100644 --- a/packages/client/src/components/app/forms/Form.svelte +++ b/packages/client/src/components/app/forms/Form.svelte @@ -3,7 +3,6 @@ import InnerForm from "./InnerForm.svelte" import { Helpers } from "@budibase/bbui" import { writable } from "svelte/store" - import { fetchDatasourceDefinition } from "utils/schema" export let dataSource export let theme @@ -23,7 +22,8 @@ const context = getContext("context") const component = getContext("component") - const { API, fetchDatasourceSchema } = getContext("sdk") + const { API, fetchDatasourceSchema, detchDatasourceDefinition } = + getContext("sdk") const getInitialFormStep = () => { const parsedFormStep = parseInt(initialFormStep) diff --git a/packages/client/src/sdk.js b/packages/client/src/sdk.js index 50d3f857d5..bd51924bf4 100644 --- a/packages/client/src/sdk.js +++ b/packages/client/src/sdk.js @@ -26,7 +26,10 @@ import Provider from "components/context/Provider.svelte" import Block from "components/Block.svelte" import BlockComponent from "components/BlockComponent.svelte" import { ActionTypes } from "./constants" -import { fetchDatasourceSchema } from "./utils/schema.js" +import { + fetchDatasourceSchema, + fetchDatasourceDefinition, +} from "./utils/schema.js" import { getAPIKey } from "./utils/api.js" import { enrichButtonActions } from "./utils/buttonActions.js" import { processStringSync, makePropSafe } from "@budibase/string-templates" @@ -66,6 +69,7 @@ export default { linkable, getAction, fetchDatasourceSchema, + fetchDatasourceDefinition, fetchData, QueryUtils, ContextScopes: Constants.ContextScopes,