Compare commits
No commits in common. "c10cdf809bdf5701199ea5615d5cc73e105df54a" and "67e722347974953c979eac3f8a4317efad8ac7a3" have entirely different histories.
c10cdf809b
...
67e7223479
@ -63,10 +63,7 @@ export class ItemTypeService {
|
|||||||
this.itemTypes = itemTypes;
|
this.itemTypes = itemTypes;
|
||||||
//return data;
|
//return data;
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch(() => this.itemTypes = null);
|
||||||
console.log(error);
|
|
||||||
this.itemTypes = null
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
return new Promise<void>((resolve) => {resolve()});
|
return new Promise<void>((resolve) => {resolve()});
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,7 @@ 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((error) => {
|
).then(() => resolve()).catch(() => reject());
|
||||||
console.log(error);
|
|
||||||
reject();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user