fix: models view when object key contains deprecated:true (#6371)
fixes #6369
This commit is contained in:
@@ -43,6 +43,7 @@ export default class ObjectModel extends Component {
|
||||
let requiredProperties = schema.get("required")
|
||||
let infoProperties = schema
|
||||
.filter( ( v, key) => ["maxProperties", "minProperties", "nullable"].indexOf(key) !== -1 )
|
||||
let deprecated = schema.get("deprecated")
|
||||
|
||||
const JumpToPath = getComponent("JumpToPath", true)
|
||||
const Markdown = getComponent("Markdown", true)
|
||||
@@ -92,6 +93,18 @@ export default class ObjectModel extends Component {
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
{
|
||||
!deprecated ? null :
|
||||
<tr className={"property"}>
|
||||
<td>
|
||||
deprecated:
|
||||
</td>
|
||||
<td>
|
||||
true
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
}
|
||||
{
|
||||
!(properties && properties.size) ? null : properties.entrySeq().filter(
|
||||
([, value]) => {
|
||||
|
||||
Reference in New Issue
Block a user