diff options
| author | bob <bcz@cs.brown.edu> | 2019-02-05 11:51:59 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-02-05 11:51:59 -0500 |
| commit | ea9f41a84a307343593245e6de0c721704dc60fa (patch) | |
| tree | 4a4d12c2a1d7d1b0e44e578e02124269ee8c2d5d /src/views/collections/CollectionSchemaView.tsx | |
| parent | 46a3ba510a02464b27b806af8fd1131dbc3da242 (diff) | |
more
Diffstat (limited to 'src/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/views/collections/CollectionSchemaView.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/views/collections/CollectionSchemaView.tsx b/src/views/collections/CollectionSchemaView.tsx index b2ff95329..19b1434ef 100644 --- a/src/views/collections/CollectionSchemaView.tsx +++ b/src/views/collections/CollectionSchemaView.tsx @@ -20,13 +20,10 @@ export class CollectionSchemaView extends CollectionViewBase { selectedIndex = 0; renderCell = (rowProps: CellInfo) => { - if (!this.props.DocumentViewForCollection) { - return <div></div> - } let props: FieldViewProps = { doc: rowProps.value[0], fieldKey: rowProps.value[1], - documentViewContainer: this.props.DocumentViewForCollection + DocumentViewForField: undefined } return ( <FieldView {...props} /> @@ -78,7 +75,7 @@ export class CollectionSchemaView extends CollectionViewBase { let content; if (this.selectedIndex != -1) { content = (<DocumentView Document={children[this.selectedIndex]} - DocumentContentsView={this.props.DocumentViewForCollection} + DocumentView={undefined} ContainingCollectionView={this} />) } else { content = <div /> |
