|
|
@ -55,11 +55,6 @@ class CoursesBanner extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentDidMount() {
|
|
|
|
componentDidMount() {
|
|
|
|
if(this.props.match.path==="/courses/:coursesId"){
|
|
|
|
|
|
|
|
if(this.props.user!=undefined){
|
|
|
|
|
|
|
|
this.props.history.push(this.props.user.first_category_url)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.onloadupdatabanner()
|
|
|
|
this.onloadupdatabanner()
|
|
|
|
on('updatabanner', this.updatabanner)
|
|
|
|
on('updatabanner', this.updatabanner)
|
|
|
|
axios.interceptors.response.use((response) => {
|
|
|
|
axios.interceptors.response.use((response) => {
|
|
|
|