mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed wrong comparisons operators in error_handler
This commit is contained in:
parent
8c450599cb
commit
4c57c7fe46
1 changed files with 2 additions and 2 deletions
|
@ -17,12 +17,12 @@ const ErrorHandlerHelper = class {
|
|||
const response = fetchResponse.response;
|
||||
|
||||
//Ignore aborted requests.
|
||||
if (response.statusText =='abort' || response.status == 0) {
|
||||
if (response.statusText === 'abort' || response.status == 0) {
|
||||
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) {
|
||||
if (response.status == 422) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue