After an update, if the status code was an 422 i have a notification with this message : Cannot read property 'hasOwnProperty' of undefined
TypeError: Cannot read property 'hasOwnProperty' of undefined
at validateResponseFormat (http://localhost:4100/static/js/0.chunk.js:147058:17)
at http://localhost:4100/static/js/0.chunk.js:147133:43
at step (http://localhost:4100/static/js/0.chunk.js:147018:19)
at Object.next (http://localhost:4100/static/js/0.chunk.js:146948:14)
at next (http://localhost:4100/static/js/0.chunk.js:227925:27)
at currCb (http://localhost:4100/static/js/0.chunk.js:228012:7)
And my api is sending this reponse :
{
"error": {
"details": [{
"status": "week",
"message": "",
"target": "ModelState"
}
],
"innerError": null,
"status": "422",
"message": "Invalid model",
"target": "ModelState"
}
}