Web: Client: InfoPanel: Fixed errors

This commit is contained in:
Ilya Oleshko 2023-01-30 17:00:22 +03:00
parent dd3ef94eaa
commit 8e745b2680
2 changed files with 4 additions and 2 deletions

View File

@ -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 = () => {

View File

@ -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) {