mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
Only show the title block if the title tag exists
This commit is contained in:
parent
4a2ac5136e
commit
84448ff411
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user