Compare commits

...

2 Commits

Author SHA1 Message Date
c10cdf809b Merge branch 'develop' of https://git.akkerweb.nl/FarmMaps/FarmMapsLib into develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2024-04-15 15:03:11 +02:00
b90bb25ae7 AW-6046 Add logging 2024-04-15 15:03:05 +02:00
2 changed files with 8 additions and 2 deletions

View File

@ -63,7 +63,10 @@ export class ItemTypeService {
this.itemTypes = itemTypes; this.itemTypes = itemTypes;
//return data; //return data;
}) })
.catch(() => this.itemTypes = null); .catch((error) => {
console.log(error);
this.itemTypes = null
});
} else { } else {
return new Promise<void>((resolve) => {resolve()}); return new Promise<void>((resolve) => {resolve()});
} }

View File

@ -13,7 +13,10 @@ export function appConfigFactory(_injector:Injector, appConfig: AppConfig, oauth
oauthService.setStorage(authStorage); oauthService.setStorage(authStorage);
oauthService.setupAutomaticSilentRefresh(); oauthService.setupAutomaticSilentRefresh();
}).then(() => oauthService.loadDiscoveryDocument() }).then(() => oauthService.loadDiscoveryDocument()
).then(() => resolve()).catch(() => reject()); ).then(() => resolve()).catch((error) => {
console.log(error);
reject();
});
}); });
} }
} }