Skip to content

Commit

Permalink
Merge pull request #902 from dpc-sdp/feature/SDPSUP-5938-carousel-links
Browse files Browse the repository at this point in the history
[SDPSUP-5938] fix carousel links
  • Loading branch information
dylankelly authored Oct 18, 2023
2 parents 3b503e0 + 87b4600 commit 52575c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const mapping = (field) => {
item = {
type: 'promo',
title: getField(field, 'field_paragraph_title', ''),
url: getField(field, 'field_paragraph_link.url', ''),
url: getLinkFromField(field, 'field_paragraph_link')?.url,
image: getImageFromField(
field,
'field_paragraph_media.field_media_image'
Expand All @@ -91,7 +91,7 @@ export const mapping = (field) => {
item = {
type: 'promo',
title: getField(field, 'field_paragraph_reference.title', ''),
url: getField(field, 'field_paragraph_reference.path.url', ''),
url: getLinkFromField(field, 'field_paragraph_reference.path')?.url,
image: getCardImage(field.field_paragraph_reference),
meta: {
topic: getField(field, 'field_paragraph_display_topic', false)
Expand Down

0 comments on commit 52575c5

Please sign in to comment.