From b9ba6da8626248335a65065ea640e8eb00260f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 26 Jul 2019 12:31:24 +0800 Subject: [PATCH] b --- public/react/src/modules/courses/new/CoursesNew.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }) }