Web: People: dialogs/Home: fixed crash when deleting user and reopening modal dialog after deleting user

This commit is contained in:
Artem Tarasov 2021-02-05 17:26:25 +03:00
parent f67d0ca5e1
commit cd18cf55cf
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,7 @@ class DeleteProfileEverDialogComponent extends React.Component {
})
.catch((error) => toastr.error(error))
.finally(() => {
this.setState({ isRequestRunning: false }, () => onClose());
onClose();
});
});
};

View File

@ -180,8 +180,7 @@ class SectionBodyContent extends React.PureComponent {
toggleDeleteProfileEverDialog = (e) => {
this.onCloseDialog();
this.props.onCancelScrollUp(true, true);
//this.props.onCancelScrollUp(true, true);
const user = this.findUserById(e.currentTarget.dataset.id);
if (!user) return;