Skip to content

Commit

Permalink
Merge pull request #11396 from wellcomecollection/whats-on-this-page-…
Browse files Browse the repository at this point in the history
…position

Check for slice_type 'editorialImage' not (transformed) 'picture'
  • Loading branch information
davidpmccormick authored Nov 13, 2024
2 parents 742dc58 + 987890b commit 9a39ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/webapp/types/body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function isVideoEmbed(slice: prismic.Slice): slice is RawEmbedSlice {
export function isEditorialImage(
slice: prismic.Slice
): slice is RawEditorialImageSlice {
return slice.slice_type === 'picture';
return slice.slice_type === 'editorialImage';
}

export type ContentListItems =
Expand Down

0 comments on commit 9a39ad4

Please sign in to comment.