diff options
author | bob <bcz@cs.brown.edu> | 2019-03-11 13:20:21 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-03-11 13:20:21 -0400 |
commit | 5969a77e913372424f9717a0f377b2f91c7dc5a6 (patch) | |
tree | 812791775598616687575fda97cdf1ef780f49a4 | |
parent | 37aebc077ba33a353a88d16470aacd7ece4fb063 (diff) |
got rid of computed mainContent...?
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 2f9680a59..7b9483f69 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules dist/ .DS_Store +src/server/public/files/* diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 7627fbf6c..4b835d86f 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -215,7 +215,8 @@ export class DocumentView extends React.Component<DocumentViewProps> { ContextMenu.Instance.displayMenu(e.pageX - 15, e.pageY - 15) SelectionManager.SelectDoc(this, e.ctrlKey); } - @computed get mainContent() { + + get mainContent() { return <JsxParser components={{ FormattedTextBox, ImageBox, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView, CollectionView, CollectionPDFView, WebBox, KeyValueBox, VideoBox, AudioBox, PDFBox }} bindings={this._documentBindings} |