Fix getSchema from forms
This commit is contained in:
parent
cd05f93b91
commit
02b20f1102
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue