diff --git a/public/react/src/modules/courses/busyWork/NewWorkForm.js b/public/react/src/modules/courses/busyWork/NewWorkForm.js index a79aa74dc..c4f6c4eed 100644 --- a/public/react/src/modules/courses/busyWork/NewWorkForm.js +++ b/public/react/src/modules/courses/busyWork/NewWorkForm.js @@ -114,7 +114,7 @@ class NewWorkForm extends Component{ // const errKeys = Object.keys(err); // || errKeys.length == 1 && errKeys[0] == 'content' && mdContnet if (!err) { - if (this.isEdit) { + if (this.state.isEdit) { this.doEdit(courseId, values) } else { this.doNew(courseId, values)