Fix getSchema from forms
This commit is contained in:
parent
40192097d8
commit
cbad9303d9
|
@ -52,7 +52,7 @@ export const fetchDatasourceSchema = async (
|
||||||
// Get the normal schema as long as we aren't wanting a form schema
|
// Get the normal schema as long as we aren't wanting a form schema
|
||||||
let schema
|
let schema
|
||||||
if (datasource?.type !== "query" || !options?.formSchema) {
|
if (datasource?.type !== "query" || !options?.formSchema) {
|
||||||
schema = instance.getSchema(datasource, definition)
|
schema = instance.getSchema(definition)
|
||||||
} else if (definition.parameters?.length) {
|
} else if (definition.parameters?.length) {
|
||||||
schema = {}
|
schema = {}
|
||||||
definition.parameters.forEach(param => {
|
definition.parameters.forEach(param => {
|
||||||
|
|
Loading…
Reference in New Issue