fix: SchemaRenderer get schema value (#102)

Co-authored-by: Shuogui Lin <shuogui.lin@shopee.com>
This commit is contained in:
twinkle77 2021-11-11 11:07:02 +08:00 committed by GitHub
parent ca58d712bc
commit f34920df5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {