fix bugs in the backend classes

This commit is contained in:
Sven Czarnian
2022-11-05 00:30:48 +01:00
parent df0a6ade57
commit e1ced4e9f8
4 changed files with 35 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ export class Airport {
})
.catch((err) => {
return {
status: err.status === 401 ? BackendReturnStatus.Unauthorized : BackendReturnStatus.Failure,
status: err.response.status === 401 ? BackendReturnStatus.Unauthorized : BackendReturnStatus.Failure,
airports: [],
};
});