fix: fix displaying top-level object without any properties

This commit is contained in:
Roman Hotsiy 2020-09-24 13:58:41 +03:00
parent f3e8ab4f8e
commit a5468fb7bb
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -65,7 +65,10 @@ export class Schema extends React.Component<Partial<SchemaProps>> {
switch (type) {
case 'object':
if (schema.fields?.length) {
return <ObjectSchema {...(this.props as any)} />;
}
break;
case 'array':
return <ArraySchema {...(this.props as any)} />;
}