diff options
author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-10-08 23:31:45 -0400 |
---|---|---|
committer | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-10-08 23:31:45 -0400 |
commit | d9d282d98fba2a136217122b790e5218f5ba8263 (patch) | |
tree | 62b8500ed2a9af25d4d030fb9b643d587e2c5fc6 | |
parent | c4a0375a9d1ce6b67494907c3b316de156f6d504 (diff) |
small change
-rw-r--r-- | src/client/util/SharingManager.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index 077812410..ee1cdb6e7 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -72,9 +72,8 @@ export default class SharingManager extends React.Component<{}> { return this.sharingDoc ? this.sharingDoc[PublicKey] !== SharingPermissions.None : false; } - public open = action((target: DocumentView) => { + public open = (target: DocumentView) => { SelectionManager.DeselectAll(); - this.users = []; this.populateUsers().then(action(() => { this.targetDocView = target; this.targetDoc = target.props.Document; @@ -84,10 +83,11 @@ export default class SharingManager extends React.Component<{}> { this.sharingDoc = new Doc; } })); - }); + }; public close = action(() => { this.isOpen = false; + this.users = []; setTimeout(action(() => { this.copied = false; MainView.Instance.hasActiveModal = false; |