diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 7280b0b39..68730b0fe 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -1357,12 +1357,14 @@ class Listofworks extends Component { let url = "/homework_commons/"+homeworkid+"/update_score.json"; axios.get(url).then((response) => { - this.props.showNotification(`${response.data.message}`); + if(response){ + this.props.showNotification(response.data.message); this.setState({ loadingstate: true }) this.Startsorting(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit); - }).catch((error) => { + } + }).catch((error) => { console.log(error) }); @@ -1542,11 +1544,16 @@ class Listofworks extends Component {