Skip to content

Commit

Permalink
avoid serverError:null being sent to API on retry
Browse files Browse the repository at this point in the history
  • Loading branch information
usu committed May 16, 2023
1 parent 48b6146 commit 4bf1098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/material/MaterialTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export default {
// retry to save to API (after server error)
retry(item) {
// reset error
this.$set(this.newMaterialItems[item.id], 'serverError', null)
this.$set(this.newMaterialItems[item.id], 'serverError', undefined)
// try to save same data again
this.postToApi(item.id, this.newMaterialItems[item.id])
Expand Down

0 comments on commit 4bf1098

Please sign in to comment.