diff --git a/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js b/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js index 792c1b64f..dfe8ad4e7 100644 --- a/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js +++ b/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js @@ -21,11 +21,11 @@ class PollDetailTabThirdInfo extends Component{
{ pollDetail.poll.polls_description }
}- { pollDetail && pollDetail.question_types.q_counts===0 ? "" : + { !pollDetail || !pollDetail.question_types || pollDetail.question_types.q_counts===0 ? "" : { - pollDetail && pollDetail.question_types.q_counts > 0 && - 合计{pollDetail.question_types.q_counts}题: + pollDetail && pollDetail.question_types && pollDetail.question_types.q_counts > 0 && + 合计{pollDetail.question_types && pollDetail.question_types.q_counts}题: } { pollDetail && pollDetail.question_types.q_singles > 0 && @@ -44,7 +44,7 @@ class PollDetailTabThirdInfo extends Component{
{ - pollDetail && pollDetail.questions.map((item,key)=>{ + pollDetail && pollDetail.questions && pollDetail.questions.map((item,key)=>{ return(