Fix binding
This commit is contained in:
parent
01b9d6069c
commit
e6f90d5a7d
|
@ -492,7 +492,7 @@ const generateComponentContextBindings = (asset, componentContext) => {
|
||||||
icon: bindingCategory.icon,
|
icon: bindingCategory.icon,
|
||||||
display: {
|
display: {
|
||||||
name: `${fieldSchema.name || key}`,
|
name: `${fieldSchema.name || key}`,
|
||||||
type: fieldSchema.type,
|
type: fieldSchema.display?.type || fieldSchema.type,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -1030,12 +1030,13 @@ export const getSchemaForDatasource = (asset, datasource, options) => {
|
||||||
fixedSchema[fieldName] = {
|
fixedSchema[fieldName] = {
|
||||||
type: fieldSchema,
|
type: fieldSchema,
|
||||||
name: fieldName,
|
name: fieldName,
|
||||||
|
display: { type: fieldSchema },
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fixedSchema[fieldName] = {
|
fixedSchema[fieldName] = {
|
||||||
...fieldSchema,
|
...fieldSchema,
|
||||||
type: field?.name || fieldSchema.name,
|
|
||||||
name: fieldName,
|
name: fieldName,
|
||||||
|
display: { type: field?.name || fieldSchema.type },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue