diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index 3134a6b58..5f63952cb 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -368,9 +368,8 @@ class CoursesNew extends Component { searchlistscholl: result.data.school_names, }) - if(searchlistscholl.length!=0){ + if(result.data.school_names.length!=0){ this.setState({ - searchlistscholl: result.data.school_names, fetching: false }) }