this.props.history.push('/paths')

dev_oauth
hjm 6 years ago
parent 2e9bfeee26
commit 8c3d13dccf

@ -252,6 +252,10 @@ class PathDetailIndex extends Component{
let param={user_id:user_id};
axios.delete(url,{data:param}).then((response) => {
if(response.data.status===1){
if (this.props.current_user.user_id == user_id) {
this.props.history.push('/paths')
return;
}
this.props.showNotification(response.data.message)
this.setState({
Modalstype:false,

Loading…
Cancel
Save