From feb86078832da5f7207bc5775a61d7dd93681e98 Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Thu, 23 Jul 2020 14:40:57 -0400 Subject: fixes for gettin new sidebar to work --- .../views/collections/collectionFreeForm/PropertiesView.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/views/collections') diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx index 11609b1c0..1954a11bf 100644 --- a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx +++ b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx @@ -30,12 +30,12 @@ export class PropertiesView extends React.Component { @computed get MAX_EMBED_HEIGHT() { return 200; } @computed get selectedDocumentView() { - if (SelectionManger.SelectedDocuments().length) { + if (SelectionManager.SelectedDocuments().length) { return SelectionManager.SelectedDocuments()[0]; } else { return undefined; } } - @computed get selectedDoc() { return this.selectedDocumentView?.props.Document; } - @computed get dataDoc() { return this.selectedDocumentView?.props.DataDoc; } + @computed get selectedDoc() { return this.selectedDocumentView?.rootDoc; } + @computed get dataDoc() { return this.selectedDocumentView?.dataDoc; } @action rtfWidth = () => { @@ -156,7 +156,7 @@ export class PropertiesView extends React.Component { render() { - if (!this.selectedDocumentView || !this.selectedDoc || !this.dataDoc) { + if (!this.selectedDoc) { return
No Document Selected @@ -168,7 +168,7 @@ export class PropertiesView extends React.Component { Properties
- {this.dataDoc.title} + {this.selectedDoc.title}
Settings
-- cgit v1.2.3-70-g09d2