[Trunk | Library]:
configuration.service.ts & ISVocabularies.service.ts: [Bug fix] Inside promise, when subscribing to request, resolve in error case as well (otherwise it never returns). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59085 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
3927a6079e
commit
0a23dd3d3b
|
@ -45,6 +45,10 @@ export class ConfigurationService {
|
|||
(communityInformation: Community) => {
|
||||
this.communityInformation.next(communityInformation);
|
||||
resolve();
|
||||
},
|
||||
error => {
|
||||
this.communityInformation.next(null);
|
||||
resolve();
|
||||
});
|
||||
}));
|
||||
|
||||
|
|
|
@ -128,6 +128,10 @@ export class ISVocabulariesService {
|
|||
vocabularyRes => {
|
||||
this.provenanceActionVocabulary.next(vocabularyRes);
|
||||
resolve();
|
||||
},
|
||||
error => {
|
||||
this.provenanceActionVocabulary.next(null);
|
||||
resolve();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue