Only show the title block if the title tag exists

This commit is contained in:
Chris Read 2020-11-09 14:23:32 +10:00
parent 4a2ac5136e
commit 84448ff411

View File

@ -24,7 +24,7 @@ export class ArraySchema extends React.PureComponent<SchemaProps> {
return (
<div>
<ArrayOpenningLabel> Array ({minMaxItems})</ArrayOpenningLabel>
<TypeTitle>{itemsSchema.schema.title}</TypeTitle>
{itemsSchema.schema.title && <TypeTitle> {itemsSchema.schema.title} </TypeTitle>}
<PaddedSchema>
<Schema {...this.props} schema={itemsSchema} />
</PaddedSchema>