[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:
parent
bb731fe686
commit
188fa6e314
|
@ -74,7 +74,7 @@ export class DataProviderService {
|
||||||
|
|
||||||
for(let i=0; i<length; i++) {
|
for(let i=0; i<length; i++) {
|
||||||
var aggregationHistory = Array.isArray(data[0]["aggregationHistory"]) ? data[0]["aggregationHistory"][i] : data[0]["aggregationHistory"];
|
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;
|
aggregationStatus.lastUpdateDate = aggregationHistory.date;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue