aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-08-02 17:42:56 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-08-02 17:42:56 +0530
commit6d02ae9f9c09c27fa8da87afbd1307240dcb9289 (patch)
tree53b90bd34e02d29dddf6a9bebe6bda7a3576e5c0
parent48796b1644c9c07a0100cfa84280b58a36662217 (diff)
minor changes
-rw-r--r--src/client/util/SharingManager.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx
index 196182b77..892fb6d6d 100644
--- a/src/client/util/SharingManager.tsx
+++ b/src/client/util/SharingManager.tsx
@@ -94,7 +94,6 @@ export default class SharingManager extends React.Component<{}> {
public close = action(() => {
this.isOpen = false;
- this.users = [];
this.selectedUsers = null; // resets the list of users and seleected users (in the react-select component)
setTimeout(action(() => {
@@ -450,9 +449,9 @@ export default class SharingManager extends React.Component<{}> {
);
const groupListContents = groups.map(group => {
- const permissions = StrCast(this.targetDoc?.[`ACL-${StrCast(group.groupName)}`], SharingPermissions.None);
+ const permissions = StrCast(this.targetDoc?.[`ACL-${StrCast(group.groupName)}`]);
- return permissions === SharingPermissions.None ? null : (
+ return !permissions ? null : (
<div
key={StrCast(group.groupName)}
className={"container"}