Skip to content

Commit

Permalink
return empty alt with no description is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoswilson committed Sep 20, 2023
1 parent b7efbb9 commit 65ab265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/globals/sanity-visual.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65ab265

Please sign in to comment.