From 5c933c7f80ef4f0e631fafed7dc16d8691823079 Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Thu, 9 Jan 2025 16:27:59 +0000 Subject: [PATCH] Revert "Fix issue with forms after cleanup" --- packages/client/src/utils/schema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/utils/schema.js b/packages/client/src/utils/schema.js index 60800afc53..ffab142cf3 100644 --- a/packages/client/src/utils/schema.js +++ b/packages/client/src/utils/schema.js @@ -31,7 +31,7 @@ const getDatasourceFetchInstance = datasource => { if (!handler) { return null } - return new handler({ API, datasource }) + return new handler({ API }) } /** @@ -52,7 +52,7 @@ export const fetchDatasourceSchema = async ( // Get the normal schema as long as we aren't wanting a form schema let schema if (datasource?.type !== "query" || !options?.formSchema) { - schema = instance.getSchema(definition) + schema = instance.getSchema(datasource, definition) } else if (definition.parameters?.length) { schema = {} definition.parameters.forEach(param => {