aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionTreeView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-20 17:20:27 -0400
committerbob <bcz@cs.brown.edu>2019-08-20 17:20:27 -0400
commit700dfc5add1ecd9c2b1ecafcdc593ff821b7a6a6 (patch)
tree3349766d8309816b3ca77e020d04b53d533d61f5 /src/client/views/collections/CollectionTreeView.tsx
parente1641b59a4cf548df0dd347d88dc41dc589f8435 (diff)
UI enhancements and other backend fixes for templates.
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
-rw-r--r--src/client/views/collections/CollectionTreeView.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx
index b6a14238e..ebd385743 100644
--- a/src/client/views/collections/CollectionTreeView.tsx
+++ b/src/client/views/collections/CollectionTreeView.tsx
@@ -443,6 +443,9 @@ class TreeView extends React.Component<TreeViewProps> {
let rowWidth = () => panelWidth() - 20;
return docs.map((child, i) => {
let pair = Doc.GetLayoutDataDocPair(containingCollection, dataDoc, key, child);
+ if (!pair.layout || pair.data instanceof Promise) {
+ return (null);
+ }
let indent = i === 0 ? undefined : () => {
if (StrCast(docs[i - 1].layout).indexOf("CollectionView") !== -1) {