File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dotcom-rendering/src/model Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ const decideMedia = (
197
197
galleryCount : number = 0 ,
198
198
audioDuration : string = '' ,
199
199
podcastImage ?: PodcastSeriesImage ,
200
+ imageHide ?: boolean ,
200
201
) : MainMedia | undefined => {
201
202
// If the showVideo toggle is enabled in the fronts tool,
202
203
// we should return the active mediaAtom regardless of the design
@@ -211,7 +212,7 @@ const decideMedia = (
211
212
case ArticleDesign . Audio :
212
213
return {
213
214
type : 'Audio' ,
214
- podcastImage,
215
+ podcastImage : ! imageHide ? podcastImage : undefined ,
215
216
duration : audioDuration ,
216
217
} ;
217
218
@@ -293,6 +294,7 @@ export const enhanceCards = (
293
294
faciaCard . card . galleryCount ,
294
295
faciaCard . card . audioDuration ,
295
296
podcastImage ,
297
+ faciaCard . display . imageHide ,
296
298
) ;
297
299
298
300
return {
You can’t perform that action at this time.
0 commit comments