diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index 136e50d6e..c5d0009c1 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -361,7 +361,7 @@ class CoursesNew extends Component { render() { let {datatime} = this.state; const {getFieldDecorator} = this.props.form; - const options = this.state.searchlist.map(d => ); + const options = this.state.searchlist && this.state.searchlist.map(d => ); const optionschool = this.state.searchlistscholl.map(z => ); // console.log(this.props.current_user.user_school) return (