Skip to content

Commit

Permalink
Merge pull request #18 from BKWLD/empty-alt
Browse files Browse the repository at this point in the history
return empty alt with no description is provided
  • Loading branch information
lemoswilson authored Sep 27, 2023
2 parents b7efbb9 + 65ab265 commit 660ecca
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 660ecca

Please sign in to comment.