From 00fd808e4f523373e93aae200303cc642642cb80 Mon Sep 17 00:00:00 2001 From: ionlizarazu Date: Wed, 29 Jun 2022 08:54:00 +0200 Subject: [PATCH 1/3] imageEditor image url fixes --- .../Blocks/FeaturedBlock/FeaturedImageEditor.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx b/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx index ac6d27c..f2f7b3a 100644 --- a/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx +++ b/src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx @@ -85,7 +85,7 @@ const FeaturedImageEditor = (props) => { if (request.loaded && !request.loading && uploading) { onChangeBlock(block, { ...data, - url: `../resolveuid/${content['UID']}`, + url: `resolveuid/${content['UID']}`, image_alt: content?.image?.filename, }); setUploading(false); @@ -97,7 +97,7 @@ const FeaturedImageEditor = (props) => { const intl = useIntl(); return ( <> - {!data.image?.url && ( + {!data.url && ( {selected && uploading && ( @@ -133,7 +133,7 @@ const FeaturedImageEditor = (props) => { onSelectItem: (_url, element) => onChangeBlock(block, { ...data, - url: `../resolveuid/${element['UID']}`, + url: `resolveuid/${element['UID']}`, image_alt: element.title, }), }); @@ -147,7 +147,7 @@ const FeaturedImageEditor = (props) => { )} - {!!data.image?.url && selected && ( + {!!data.url && selected && ( <>
@@ -164,7 +164,7 @@ const FeaturedImageEditor = (props) => { onSelectItem: (url, element) => onChangeBlock(block, { ...data, - url: `../resolveuid/${element['UID']}`, + url: `resolveuid/${element['UID']}`, image_alt: element?.title, }), }); @@ -176,7 +176,7 @@ const FeaturedImageEditor = (props) => { onSelectItem: (url, element) => onChangeBlock(block, { ...data, - url: `../resolveuid/${element['UID']}`, + url: `resolveuid/${element['UID']}`, image_alt: element?.title, }), }); From d3a26dae38cad2851a3f7666f50c1047cce7741e Mon Sep 17 00:00:00 2001 From: ionlizarazu Date: Wed, 29 Jun 2022 08:54:21 +0200 Subject: [PATCH 2/3] remove unused class --- .../Blocks/FeaturedBlock/Variations/CarouselFeaturedView.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Blocks/FeaturedBlock/Variations/CarouselFeaturedView.jsx b/src/components/Blocks/FeaturedBlock/Variations/CarouselFeaturedView.jsx index 283dd9e..a402bb7 100644 --- a/src/components/Blocks/FeaturedBlock/Variations/CarouselFeaturedView.jsx +++ b/src/components/Blocks/FeaturedBlock/Variations/CarouselFeaturedView.jsx @@ -32,7 +32,6 @@ const CarouselFeaturedView = (props) => { {data.linkText && (