From 06c03c8ebb9ea72f75f52147d4f38862b0e5eab7 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 23 Jul 2019 18:12:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/new/CoursesNew.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (