diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-19 21:31:11 -0500 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-19 21:31:11 -0500 |
commit | 4b96ca51f00eaf61d84659a49452883223f29ba3 (patch) | |
tree | 340e1b32dbc5637a24dd7c9e915966fb8d5a67d8 /src/client/views/nodes/DocumentView.tsx | |
parent | 429f381e64424324d58ba4d9897e97f8b50b7223 (diff) | |
parent | 7b1062ad66c075b411025f31af8820049e53f3a4 (diff) |
Merge branch 'server_database_merge' of github-tsch-brown:browngraphicslab/Dash-Web into server_database_merge
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 1f3567f6a..4ad3a2dd7 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 => { |