diff options
author | bobzel <zzzman@gmail.com> | 2020-08-01 09:39:38 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-01 09:39:38 -0400 |
commit | b33e31e369aef6e0675219c96ba4b8a058a69b0c (patch) | |
tree | b71dca5ca18c137e0a4a3d9edb38f97e4ee3dc94 /src/client/views/collections/CollectionTreeView.tsx | |
parent | e084dfdc8da4cbf2ad7039111d9118a330259a33 (diff) |
fixed warnings
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
-rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index d6203e7da..ca3ab8866 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -104,7 +104,7 @@ class TreeView extends React.Component<TreeViewProps> { const layout = Doc.LayoutField(this.doc) instanceof Doc ? Doc.LayoutField(this.doc) as Doc : undefined; return ((this.props.dataDoc ? DocListCast(this.props.dataDoc[field]) : undefined) || // if there's a data doc for an expanded template, use it's data field (layout ? DocListCast(layout[field]) : undefined) || // else if there's a layout doc, display it's fields - DocListCast(this.doc[field])) as Doc[]; // otherwise use the document's data field + DocListCast(this.doc[field])); // otherwise use the document's data field } @computed get childDocs() { return this.childDocList(this.fieldKey); } @computed get childLinks() { return this.childDocList("links"); } |