We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205eba0 commit 0813b60Copy full SHA for 0813b60
dotcom-rendering/src/model/enhanceCards.ts
@@ -87,15 +87,14 @@ const decideUrl = (trail: FESupportingContent | FEFrontCard) => {
87
};
88
89
const decideImage = (trail: FEFrontCard) => {
90
+ if (trail.display.imageHide) return undefined;
91
if (
92
trail.type === 'LinkSnap' ||
93
trail.properties.image?.type === 'Replace'
94
) {
95
return trail.properties.image?.item.imageSrc;
96
}
97
- if (trail.display.imageHide) return undefined;
98
-
99
if (trail.properties.isCrossword && trail.properties.maybeContentId) {
100
return `https://api.nextgen.guardianapps.co.uk/${trail.properties.maybeContentId}.svg`;
101
0 commit comments