Image genartiona dn temaplte design redesign
This commit is contained in:
@@ -455,7 +455,8 @@ export default function Images() {
|
||||
|
||||
if (imageType === 'featured' && contentGroup.featured_image) {
|
||||
image = contentGroup.featured_image;
|
||||
} else if (imageType === 'in_article' && position) {
|
||||
} else if (imageType === 'in_article' && position !== undefined) {
|
||||
// Position is 0-indexed, so check for undefined instead of falsy
|
||||
image = contentGroup.in_article_images.find(img => img.position === position) || null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user