aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-02-25 19:44:58 -0500
committerlaurawilsonri <laura_wilson@brown.edu>2019-02-25 19:44:58 -0500
commit171852260c04ba7aafd789b231d98cdaa2a7dc8d (patch)
tree53ca1cf310bc099e4cbad07adc2efaa9dc3d12c9 /src/client/views/nodes/DocumentView.tsx
parent03b35e3d6346800821bb830a7c102dede74647fe (diff)
all but removing preview cursor works
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 914182efa..bb6c8d13a 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -120,7 +120,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
}
if (Math.abs(this._downX - e.clientX) > 3 || Math.abs(this._downY - e.clientY) > 3) {
//remove preview cursor from collection
- if (this.props.ContainingCollectionView != undefined && this.props.ContainingCollectionView instanceof CollectionFreeFormView) {
+ if (this.props.ContainingCollectionView != undefined) {
this.props.ContainingCollectionView.hidePreviewCursor();
}
this._contextMenuCanOpen = false;
@@ -208,6 +208,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
onError={(test: any) => { console.log(test) }}
/>
}
+
render() {
if (!this.props.Document)
return <div></div>