mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
fix: SchemaRenderer get schema value (#102)
Co-authored-by: Shuogui Lin <shuogui.lin@shopee.com>
This commit is contained in:
parent
ca58d712bc
commit
f34920df5b
@ -689,7 +689,7 @@ export const SchemaRenderer = (props: SchemaRendererProps) => {
|
||||
const form = useMemo(() => props.form || createForm(), []);
|
||||
const schema = useMemo(() => {
|
||||
if (Schema.isSchemaInstance(props.schema)) {
|
||||
return schema;
|
||||
return props.schema;
|
||||
}
|
||||
let s = props.schema;
|
||||
if (props.onlyRenderProperties) {
|
||||
|
Loading…
Reference in New Issue
Block a user