Skip to content
Snippets Groups Projects
Commit 23bbf637 authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Handle already graded problems in the front-end

parent a73998ff
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,15 @@ class Exams extends React.Component {
})
.catch(err => {
console.log(err)
// update to try and get a consistent state
this.updateExam()
err.json().then(res => {
this.setState({
deletingWidget: false
})
Notification.error('Could not delete problem' +
(res.message ? ': ' + res.message : ''))
// update to try and get a consistent state
this.props.updateExam(this.props.examID)
})
})
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment