[Trunk | Library]: dataprovider.service.ts: Extra check for aggregationHistory added in parsing.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57405 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-10-17 13:29:43 +00:00
parent bb731fe686
commit 188fa6e314
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export class DataProviderService {
for(let i=0; i<length; i++) {
var aggregationHistory = Array.isArray(data[0]["aggregationHistory"]) ? data[0]["aggregationHistory"][i] : data[0]["aggregationHistory"];
if(aggregationHistory.indexedVersion == true) {
if(aggregationHistory && aggregationHistory.indexedVersion == true) {
aggregationStatus.lastUpdateDate = aggregationHistory.date;
break;
}