displaying only first img in article linked materials as all but first image derivative are missing, still to fix
This commit is contained in:
parent
987bc95326
commit
d7a701c8f5
File diff suppressed because one or more lines are too long
|
@ -226,10 +226,12 @@ export default {
|
||||||
field.images = [];
|
field.images = [];
|
||||||
included.relationships.images.data.forEach((img) => {
|
included.relationships.images.data.forEach((img) => {
|
||||||
// console.log('href', img.meta.imageDerivatives.links.card_medium.href);
|
// console.log('href', img.meta.imageDerivatives.links.card_medium.href);
|
||||||
|
if(img.meta.imageDerivatives){
|
||||||
field.images.push({
|
field.images.push({
|
||||||
title:img.meta.title,
|
title:img.meta.title,
|
||||||
url:img.meta.imageDerivatives.links.card_medium.href
|
url:img.meta.imageDerivatives.links.card_medium.href
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
case 'field_thesaurus':
|
case 'field_thesaurus':
|
||||||
|
|
Loading…
Reference in New Issue