Skip to content
Snippets Groups Projects
Commit 7f7605a0 authored by KDSBrowne's avatar KDSBrowne
Browse files

remove condition and push current path

parent 44c70a91
No related branches found
No related tags found
No related merge requests found
......@@ -218,9 +218,7 @@ class Settings extends Component {
confirm={{
callback: () => {
this.updateSettings(this.state.current);
if (window.location.pathname.includes('users')) {
this.props.router.push('/users');
}
this.props.router.push(location.pathname);
/* We need to use mountModal(null) here to prevent submenu state updates,
* from re-opening the modal.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment