Fix getSchema from forms

This commit is contained in:
Adria Navarro 2025-01-09 14:24:59 +01:00
parent cd05f93b91
commit 02b20f1102
1 changed files with 1 additions and 1 deletions

View File

@ -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(datasource, definition)
schema = instance.getSchema(definition)
} else if (definition.parameters?.length) {
schema = {}
definition.parameters.forEach(param => {