aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionTreeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-11 20:15:05 -0400
committerbobzel <zzzman@gmail.com>2020-09-11 20:15:05 -0400
commitff229819aa111c828a9134c5db12cc74ae410bce (patch)
tree1318d81b63f17a09f6d2da468f4fb5a4a9335655 /src/client/views/collections/CollectionTreeView.tsx
parentbfd2769ccce8db190913d9a9fcb6f8f3cac75935 (diff)
added lightbox button to topbar. fixed treeview editableTitle crash
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
-rw-r--r--src/client/views/collections/CollectionTreeView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx
index ba424be37..52e3c86b8 100644
--- a/src/client/views/collections/CollectionTreeView.tsx
+++ b/src/client/views/collections/CollectionTreeView.tsx
@@ -903,8 +903,8 @@ export class CollectionTreeView extends CollectionSubView<Document, Partial<coll
setTimeout(() => RichTextMenu.Instance.TextView?.EditorView?.focus(), 150);
});
- editableTitle(childDocs: Doc[]) {
- return <EditableView
+ editableTitle = (childDocs: Doc[]) => {
+ return !this.dataDoc ? (null) : <EditableView
contents={this.dataDoc.title}
editing={false}
display={"block"}