prevent client breaking when settings are saved while userlist is open
This commit is contained in:
parent
2505f04904
commit
44c70a9199
@ -218,6 +218,9 @@ class Settings extends Component {
|
||||
confirm={{
|
||||
callback: () => {
|
||||
this.updateSettings(this.state.current);
|
||||
if (window.location.pathname.includes('users')) {
|
||||
this.props.router.push('/users');
|
||||
}
|
||||
/* We need to use mountModal(null) here to prevent submenu state updates,
|
||||
* from re-opening the modal.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user