Web: Client: InfoPanel: Fixed errors
This commit is contained in:
parent
dd3ef94eaa
commit
8e745b2680
@ -39,7 +39,9 @@ const User = ({
|
||||
invitations: [{ id: user.id, access: option.access }],
|
||||
notify: false,
|
||||
sharingMessage: "",
|
||||
}).then(() => setIsLoading(false));
|
||||
})
|
||||
.catch((err) => toastr.error(err))
|
||||
.finally(() => setIsLoading(false));
|
||||
};
|
||||
|
||||
const abortCallback = () => {
|
||||
|
@ -124,7 +124,7 @@ class PeopleStore {
|
||||
|
||||
let fromType =
|
||||
users.length === 1
|
||||
? [users[0].role ? user[0].role : getUserRole(users[0])]
|
||||
? [users[0].role ? users[0].role : getUserRole(users[0])]
|
||||
: users.map((u) => (u.role ? u.role : getUserRole(u)));
|
||||
|
||||
if (users.length > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user