mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-13 18:58:52 +01:00
Fixed wrong comparisons operators in error_handler
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user