aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-07-23 14:40:57 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-07-23 14:40:57 -0400
commitfeb86078832da5f7207bc5775a61d7dd93681e98 (patch)
treeeb5d6aeccf78d07678c260a3c3a84eb309cfd97b /src/client/views/collections/collectionFreeForm
parent05c46464ba69e889145d8a32320cd7f130665ee1 (diff)
fixes for gettin new sidebar to work
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/PropertiesView.tsx10
1 files changed, 5 insertions, 5 deletions
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<PropertiesViewProps> {
@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<PropertiesViewProps> {
render() {
- if (!this.selectedDocumentView || !this.selectedDoc || !this.dataDoc) {
+ if (!this.selectedDoc) {
return <div className="propertiesView" >
<div className="propertiesView-title">
No Document Selected
@@ -168,7 +168,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
Properties
</div>
<div className="propertiesView-name">
- {this.dataDoc.title}
+ {this.selectedDoc.title}
</div>
<div className="propertiesView-settings">
<div className="propertiesView-settings-title"> Settings</div>