aboutsummaryrefslogtreecommitdiff
path: root/src/views/collections/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-06 16:11:42 -0500
committerbob <bcz@cs.brown.edu>2019-02-06 16:11:42 -0500
commit59d5992f2a101eff7743328c3fdefe6a0006ada9 (patch)
treeb28dbb2e06f1fffeafcd2b43845072f9f3f6f1fc /src/views/collections/CollectionSchemaView.tsx
parent7598b88bbad9690c59f8b164144aa0d02a0a211f (diff)
parent84eea14a86265ce0585342d9f3a3c4107c02df17 (diff)
woring db stub.
Diffstat (limited to 'src/views/collections/CollectionSchemaView.tsx')
-rw-r--r--src/views/collections/CollectionSchemaView.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/views/collections/CollectionSchemaView.tsx b/src/views/collections/CollectionSchemaView.tsx
index 59d54e8c4..8817cb496 100644
--- a/src/views/collections/CollectionSchemaView.tsx
+++ b/src/views/collections/CollectionSchemaView.tsx
@@ -69,12 +69,11 @@ export class CollectionSchemaView extends CollectionViewBase {
render() {
const { DocumentForCollection: Document, CollectionFieldKey: fieldKey } = this.props;
- const children = Document.GetListField<Document>(fieldKey, []);
- const columns = Document.GetListField(KS.ColumnsKey,
+ const children = Document.GetList<Document>(fieldKey, []);
+ const columns = Document.GetList(KS.ColumnsKey,
[KS.Title, KS.Data, KS.Author])
let content;
if (this.selectedIndex != -1) {
- var data = this.props.DocumentForCollection.GetField(KS.Data);
content = (<DocumentView Document={children[this.selectedIndex]} DocumentView={undefined} ContainingCollectionView={this} />)
} else {
content = <div />