diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index a8f50b030..136e50d6e 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -290,7 +290,7 @@ class CoursesNew extends Component { search:value }).then((result)=>{ // console.log(result.data) - if (response.data.message===undefined) { + if (result.data.message===undefined) { this.setState({ searchlist: result.data.course_lists, // course:value, @@ -345,7 +345,7 @@ class CoursesNew extends Component { search: value } }).then((result)=>{ - if (response.data.message===undefined) { + if (result.data.message===undefined) { this.setState({ searchlistscholl: result.data.school_names, scholl: value