From 96225aa12d64577ccaa4a791754171dce81baff3 Mon Sep 17 00:00:00 2001 From: blakeganderson <85515364+blakeganderson@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:54:06 -0500 Subject: [PATCH] THEMES-1580 added transform to related-content (#1854) added transform to related-content Co-authored-by: Ryan Barnett --- .../sources/related-content.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blocks/related-content-content-source-block/sources/related-content.js b/blocks/related-content-content-source-block/sources/related-content.js index 8a3d67d07e..d5e12edb9c 100644 --- a/blocks/related-content-content-source-block/sources/related-content.js +++ b/blocks/related-content-content-source-block/sources/related-content.js @@ -37,7 +37,10 @@ const fetch = ({ _id, "arc-site": site }, { cachedCall }) => { method: "GET", }) .then(signImagesInANSObject(cachedCall, resizerFetch, RESIZER_TOKEN_VERSION)) - .then(({ data }) => data) + .then(({ data: { basic, ...remainingData } }) => ({ + ...remainingData, + content_elements: basic, + })) .catch(handleFetchError); };