diff options
author | bobzel <zzzman@gmail.com> | 2023-04-17 11:18:37 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-17 11:18:37 -0400 |
commit | 4c803d0556aec2e06387a86cc84069577bebd5c9 (patch) | |
tree | b90cf1dea76f51e273e9c11f9084cf6ce02b9f77 /src/client/util/SharingManager.tsx | |
parent | cd30c14116bbbab16c21a7ecc31090d2b4bf413f (diff) | |
parent | 8127616d06b4db2b29de0b13068810fd19e77b5e (diff) |
Merge branch 'master' into pres-trail-sophie
Diffstat (limited to 'src/client/util/SharingManager.tsx')
-rw-r--r-- | src/client/util/SharingManager.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index 3c05af4bb..a73eda04c 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -370,11 +370,10 @@ export class SharingManager extends React.Component<{}> { const docs = SelectionManager.Views().length > 1 ? SelectionManager.Views().map(docView => docView.props.Document) : [this.targetDoc]; return ( <span - className={'focus-span'} + className="focus-span" title={title} onClick={() => { - let context: Opt<CollectionView>; - if (this.targetDoc && this.targetDocView && docs.length === 1 && (context = this.targetDocView.props.ContainingCollectionView)) { + if (this.targetDoc && this.targetDocView && docs.length === 1) { DocumentManager.Instance.showDocument(this.targetDoc, { willZoomCentered: true }); } }} |