[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:
konstantina.galouni 2020-07-13 10:13:42 +00:00
parent 3927a6079e
commit 0a23dd3d3b
2 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,10 @@ export class ConfigurationService {
(communityInformation: Community) => {
this.communityInformation.next(communityInformation);
resolve();
},
error => {
this.communityInformation.next(null);
resolve();
});
}));

View File

@ -128,6 +128,10 @@ export class ISVocabulariesService {
vocabularyRes => {
this.provenanceActionVocabulary.next(vocabularyRes);
resolve();
},
error => {
this.provenanceActionVocabulary.next(null);
resolve();
}
);
});