|
@@ -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);
|
|
- field.images.push({
|
|
|
|
- title:img.meta.title,
|
|
|
|
- url: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;
|
|
break;
|
|
case 'field_thesaurus':
|
|
case 'field_thesaurus':
|