|
|
@ -252,6 +252,10 @@ class PathDetailIndex extends Component{
|
|
|
|
let param={user_id:user_id};
|
|
|
|
let param={user_id:user_id};
|
|
|
|
axios.delete(url,{data:param}).then((response) => {
|
|
|
|
axios.delete(url,{data:param}).then((response) => {
|
|
|
|
if(response.data.status===1){
|
|
|
|
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.props.showNotification(response.data.message)
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Modalstype:false,
|
|
|
|
Modalstype:false,
|
|
|
|