Toggling pregrading and Identifying blank solutions
Compare changes
Files
8+ 43
− 1
@@ -47,6 +47,7 @@ class Exams extends React.Component {
@@ -195,13 +196,40 @@ class Exams extends React.Component {
@@ -738,6 +766,20 @@ class Exams extends React.Component {
If you first do
catch
and thenthen
what you get is that thethen
callback is also executed if the api call results in an error. If you switch the order and an error occurs inapi.put
, thethen
callback does not get executed but thecatch
does. See for yourself if you want to update the state in case of an error.I think @hleistra changed this?