mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Do not show error box if an validation error occurs.
This commit is contained in:
parent
103969a283
commit
6885aefbe7
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ const ErrorHandlerHelper = class {
|
|||
return;
|
||||
}
|
||||
|
||||
//Ignore status 422 as this means a symfony validation error occured and we need to show it to user. This is no (unexpected) error.
|
||||
if (response.status = 422) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(fetchResponse.failed) {
|
||||
//Create error text
|
||||
let title = response.statusText + ' (Status ' + response.status + ')';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue