From 8c02ea6d5f21d8d1bfbb7d1d5becd992b64ec5ce 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 13:49:27 +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 --- .../component/Videostatisticscomtwo.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js index 8893eb07e..c1966c3dc 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js @@ -458,7 +458,19 @@ class Videostatisticscomtwo extends Component { mytitle=this.props&&this.props.mytitle; }else{ - mytitle=this.state.data[0].title; + if(this.state.data){ + if(this.state.data.length>0){ + try { + if(this.state.data[0].title){ + mytitle=this.state.data[0].title; + } + }catch (e) { + + } + + } + } + } return (