Add name fallback, fix name extraction from props

This commit is contained in:
Owen Conti
2017-07-21 20:13:12 -06:00
committed by GitHub
parent d40351ce54
commit ca937f4bdd

View File

@@ -15,9 +15,9 @@ export default class ArrayModel extends Component {
} }
render(){ render(){
let { getComponent, required, schema, depth, expandDepth } = this.props let { getComponent, required, schema, depth, expandDepth, name } = this.props
let items = schema.get("items") let items = schema.get("items")
let title = schema.get("title") let title = schema.get("title") || name
let properties = schema.filter( ( v, key) => ["type", "items", "$$ref"].indexOf(key) === -1 ) let properties = schema.filter( ( v, key) => ["type", "items", "$$ref"].indexOf(key) === -1 )
const ModelCollapse = getComponent("ModelCollapse") const ModelCollapse = getComponent("ModelCollapse")