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 (