|
|
@ -323,7 +323,7 @@ class NewWorkForm extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
const courseId = this.state.course_id || this.props.match.params.coursesId ;
|
|
|
|
const courseId = this.state.course_id || this.props.match.params.coursesId ;
|
|
|
|
this.isEdit = this.isEdit || this.props.match.url.indexOf('/edit') != -1
|
|
|
|
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 ''
|
|
|
|
return ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const uploadProps = {
|
|
|
|
const uploadProps = {
|
|
|
|