From d9d282d98fba2a136217122b790e5218f5ba8263 Mon Sep 17 00:00:00 2001 From: Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> Date: Tue, 8 Oct 2019 23:31:45 -0400 Subject: small change --- src/client/util/SharingManager.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2