Web:Client: delete useless code

This commit is contained in:
TimofeyBoyko 2022-10-19 16:53:52 +05:00
parent 2574d0cd5f
commit 1ad68d1ded
3 changed files with 1 additions and 5 deletions

View File

@ -46,7 +46,7 @@ class ChangeUserStatusDialogComponent extends React.Component {
usersCount = users.length;
})
.catch((error) => toastr.error(error))
.finally((users) => {
.finally(() => {
this.setState({ isRequestRunning: false }, () => {
toastr.success(t("PeopleTranslations:SuccessChangeUserStatus"));
(!infoPanelVisible || usersCount !== 1) && setSelected("close");

View File

@ -37,8 +37,6 @@ const AccountsItemTitle = ({
);
}
console.log(selection);
return (
<StyledAccountsItemTitle isPending={isPending}>
<Avatar

View File

@ -255,7 +255,6 @@ class PeopleStore {
disabled: !hasUsersToActivate,
onClick: () => this.onChangeStatus(EmployeeStatus.Active),
iconUrl: "images/enable.react.svg",
"data-status": EmployeeStatus.Active,
},
{
key: "disable",
@ -263,7 +262,6 @@ class PeopleStore {
disabled: !hasUsersToDisable,
onClick: () => this.onChangeStatus(EmployeeStatus.Disabled),
iconUrl: "images/disable.react.svg",
"data-status": EmployeeStatus.Disabled,
},
{
key: "delete",