From aa182f971bc14198afeb7c282b2479fc8ede31ed Mon Sep 17 00:00:00 2001 From: ionlizarazu Date: Fri, 10 Jun 2022 10:14:35 +0200 Subject: [PATCH] url fix --- src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx b/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx index bde7d53..ac6d27c 100644 --- a/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx +++ b/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx @@ -133,10 +133,8 @@ const FeaturedImageEditor = (props) => { onSelectItem: (_url, element) => onChangeBlock(block, { ...data, - image: { - url: element['@id'], - alt: element.title, - }, + url: `../resolveuid/${element['UID']}`, + image_alt: element.title, }), }); }}