Compare commits
2 Commits
67e7223479
...
c10cdf809b
Author | SHA1 | Date | |
---|---|---|---|
c10cdf809b | |||
b90bb25ae7 |
@ -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()});
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user