From 5a74ced3d000bd6ec5ba0d912065e6447b051ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 17 Mar 2020 17:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/Resource/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js index d5d777f3b..fc578b633 100644 --- a/public/react/src/modules/courses/Resource/index.js +++ b/public/react/src/modules/courses/Resource/index.js @@ -163,7 +163,7 @@ class Fileslists extends Component{ let list = response.data.course_modules; let course_second_categoriess; list.map((item, key) => { - course_second_categoriess = item.course_second_categories + course_second_categoriess = item.course_second_categories?item.course_second_categories:[] }) this.setState({ @@ -1002,7 +1002,7 @@ class Fileslists extends Component{ `}