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