From 65ab2652af4a61bd871ca74b795cfa85ebd495cd Mon Sep 17 00:00:00 2001 From: Wilson Date: Wed, 20 Sep 2023 01:50:11 -0700 Subject: [PATCH] return empty alt with no description is provided --- adapters/globals/sanity-visual.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/globals/sanity-visual.js b/adapters/globals/sanity-visual.js index 83211fd..e3e72be 100644 --- a/adapters/globals/sanity-visual.js +++ b/adapters/globals/sanity-visual.js @@ -29,7 +29,7 @@ export default { video: getVideoUrl(props.video), aspect: props.aspect || props.image?.asset?.metadata?.dimensions?.aspectRatio, - alt: props.alt || props.image?.alt, + alt: props.alt || props.image?.alt || "", objectPosition: props.objectPosition || makeObjectPosition(props.image), // Apply cropping