|
|
|
@ -329,6 +329,10 @@ class Collaborators extends Component {
|
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
let url = "/shixuns/" + id + "/collaborators_delete.json?user_id=" + collaborators_deletevalue;
|
|
|
|
|
axios.delete(url).then((response) => {
|
|
|
|
|
if (this.props.current_user.user_id == collaborators_deletevalue) {
|
|
|
|
|
this.props.history.push('/shixuns')
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.props.showSnackbar(response.data.message);
|
|
|
|
|
this.updatacomponentDiddata();
|
|
|
|
|
this.setState({
|
|
|
|
|