prevent client breaking when settings are saved while userlist is open

This commit is contained in:
KDSBrowne 2018-04-20 13:05:33 -07:00
parent 2505f04904
commit 44c70a9199

View File

@ -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.
*/