Web: People: dialogs/Home: fixed crash when deleting user and reopening modal dialog after deleting user
This commit is contained in:
parent
f67d0ca5e1
commit
cd18cf55cf
@ -37,7 +37,7 @@ class DeleteProfileEverDialogComponent extends React.Component {
|
||||
})
|
||||
.catch((error) => toastr.error(error))
|
||||
.finally(() => {
|
||||
this.setState({ isRequestRunning: false }, () => onClose());
|
||||
onClose();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user