displaying only first img in article linked materials as all but first image derivative are missing, still to fix

This commit is contained in:
Bachir Soussi Chiadmi 2020-02-19 10:47:08 +01:00
parent 987bc95326
commit d7a701c8f5
2 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -226,10 +226,12 @@ export default {
field.images = [];
included.relationships.images.data.forEach((img) => {
// console.log('href', img.meta.imageDerivatives.links.card_medium.href);
if(img.meta.imageDerivatives){
field.images.push({
title:img.meta.title,
url:img.meta.imageDerivatives.links.card_medium.href
})
}
})
break;
case 'field_thesaurus':