1.map(id => {
2 if(this.props.schema.collectionName.length < 0)
3 return <Expandable>
4 <ObjectDisplay
5 key={id}
6 parentDocumentId={id}
7 schema={schema[this.props.schema.collectionName]}
8 value={this.props.collection.documents[id]}
9 />
10 </Expandable>
11 return <h1>hejsan</h1>
12}
13
1.map(id => {
2 return this.props.schema.collectionName.length < 0 ?
3 <Expandable>
4 <ObjectDisplay
5 key={id}
6 parentDocumentId={id}
7 schema={schema[this.props.schema.collectionName]}
8 value={this.props.collection.documents[id]}
9 />
10 </Expandable>
11 :
12 <h1>hejsan</h1>
13}
14