|
|
|
@ -328,8 +328,7 @@ class CoursesNew extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
goback = (id) => {
|
|
|
|
|
|
|
|
|
|
// if(this.props.match.params.coursesId===undefined){
|
|
|
|
|
// if(this.props.match.params.coursesId===undefined){
|
|
|
|
|
// this.props.history.push("/courses");
|
|
|
|
|
// }else{
|
|
|
|
|
// this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
@ -340,13 +339,13 @@ class CoursesNew extends Component {
|
|
|
|
|
// }else{
|
|
|
|
|
try {
|
|
|
|
|
if(this.props.current_user.first_category_url===undefined){
|
|
|
|
|
this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
|
this.props.history.push('/')
|
|
|
|
|
}else {
|
|
|
|
|
this.props.history.goBack()
|
|
|
|
|
this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
|
this.props.history.goBack()
|
|
|
|
|
this.props.history.push('/')
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|