Don't treat not as an array (in contrast to allOf, anyOf)

This commit is contained in:
Kyle Shockey
2017-11-21 14:08:55 -08:00
parent 2ad1bacf6f
commit 44d9234971
2 changed files with 9 additions and 7 deletions

View File

@@ -142,12 +142,13 @@ export default class ObjectModel extends Component {
: <tr>
<td>{ "not ->" }</td>
<td>
{not.map((schema, k) => {
return <div key={k}><Model { ...otherProps } required={ false }
getComponent={ getComponent }
schema={ schema }
depth={ depth + 1 } /></div>
})}
<div>
<Model { ...otherProps }
required={ false }
getComponent={ getComponent }
schema={ not }
depth={ depth + 1 } />
</div>
</td>
</tr>
}