aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-02-19 20:47:39 -0500
committerBob Zeleznik <zzzman@gmail.com>2019-02-19 20:47:39 -0500
commit7b1062ad66c075b411025f31af8820049e53f3a4 (patch)
tree31a8a79d66ab98ecf3a6da681f1fba66e63f1ce1 /src/client/views/nodes/DocumentView.tsx
parent4e88373e968795ea2dd40db534dca57b885b8398 (diff)
fixed doc decs so they don't appear on topmost collections
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 518add0fc..97bcdd333 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -112,7 +112,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
@computed
get active(): boolean {
- return SelectionManager.IsSelected(this) || this.props.ContainingCollectionView === undefined ||
+ return SelectionManager.IsSelected(this) || !this.props.ContainingCollectionView ||
this.props.ContainingCollectionView.active;
}
@@ -146,7 +146,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
@computed
get topMost(): boolean {
- return this.props.ContainingCollectionView == undefined || this.props.ContainingCollectionView instanceof CollectionDockingView;
+ return !this.props.ContainingCollectionView || this.props.ContainingCollectionView instanceof CollectionDockingView;
}
onPointerMove = (e: PointerEvent): void => {