From 7c3e91fb881a997d12d0ddefa0a96e064e2aaf5c Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 24 Jun 2019 13:52:48 +0800 Subject: [PATCH] isNiPing --- public/react/src/modules/courses/busyWork/CommonWorkList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index dcc33056f..10f98a4ab 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -51,7 +51,7 @@ function buildColumns(that, student_works) { const isAdmin = that.props.isAdmin() const isAdminOrStudent = that.props.isAdminOrStudent() const isStudent = that.props.isStudent() - const isNiPing = homework_status.indexOf('匿评中') != -1 + const isNiPing = homework_status && homework_status.indexOf('匿评中') != -1 // https://www.trustie.net/issues/21450 分组作业作品列表 学时视角,匿评阶段的列表显示信息不正确 const niPingAndIsStudent = isStudent && isNiPing