From 61dad66bfb7536bfad6e745b98ff44ea8702bfc5 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 24 Sep 2019 18:05:11 +0800 Subject: [PATCH] this.state.description != '' --- public/react/src/modules/courses/busyWork/NewWorkForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/busyWork/NewWorkForm.js b/public/react/src/modules/courses/busyWork/NewWorkForm.js index c52350c78..81851d2f2 100644 --- a/public/react/src/modules/courses/busyWork/NewWorkForm.js +++ b/public/react/src/modules/courses/busyWork/NewWorkForm.js @@ -323,7 +323,7 @@ class NewWorkForm extends Component{ const courseId = this.state.course_id || this.props.match.params.coursesId ; this.isEdit = this.isEdit || this.props.match.url.indexOf('/edit') != -1 - if ((this.isEdit) && !this.state.description) { + if ((this.isEdit) && !this.state.description && this.state.description != '') { return '' } const uploadProps = {