Skip to content

Commit

Permalink
Fix duplicated srset on disable in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Aug 13, 2024
1 parent 9a9183a commit 3071d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/NativeIdealImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function NativeIdealImage(props: NativeIdealImageProps): JSX.Elem
? !isSingleImage
? lastFormat!.srcSet.map((image) => `${image.path} ${image.width}w`).join(',')
: undefined
: data
: undefined
}
sizes={sizesAttr}
width={width ?? (isSingleImage || sizesAttr === 'auto') ? largestImage?.width : undefined}
Expand Down

0 comments on commit 3071d5d

Please sign in to comment.