diff options
| author | Jude <julie_wang1@brown.edu> | 2019-02-24 15:27:27 -0500 |
|---|---|---|
| committer | Jude <julie_wang1@brown.edu> | 2019-02-24 15:27:27 -0500 |
| commit | 3213d828b4386eabc2ee19b47279d0053958ea2a (patch) | |
| tree | a0cdc8d392d041cf2edb083152ea6f05a9df985f /src/client/views/collections/CollectionTreeView.tsx | |
| parent | 2eec7d883511107136d27683a309287c350f79b4 (diff) | |
why doesn't this work
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index adc2e032d..90cd5a4c0 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -7,14 +7,15 @@ import { ListField } from "../../../fields/ListField"; @observer export class CollectionTreeView extends CollectionViewBase { - public static makeTreeView(document: Document) { - var children = document.GetT<ListField<Document>>(KeyStore.Data, ListField); + test = () => { + var children = this.props.Document.GetT<ListField<Document>>(KeyStore.Data, ListField); if (children != null) { console.log("\nNumber of Children: " + children); } + return "HELLO WORLD"; } render() { - return "HELLO WORLD"; + return { test }; } }
\ No newline at end of file |
