Skip to content

Commit ca937f4

Browse files
authored
Add name fallback, fix name extraction from props
1 parent d40351c commit ca937f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/components/array-model.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export default class ArrayModel extends Component {
1515
}
1616

1717
render(){
18-
let { getComponent, required, schema, depth, expandDepth } = this.props
18+
let { getComponent, required, schema, depth, expandDepth, name } = this.props
1919
let items = schema.get("items")
20-
let title = schema.get("title")
20+
let title = schema.get("title") || name
2121
let properties = schema.filter( ( v, key) => ["type", "items", "$$ref"].indexOf(key) === -1 )
2222

2323
const ModelCollapse = getComponent("ModelCollapse")

0 commit comments

Comments
 (0)