Skip to content

Commit

Permalink
fix(image): incorrect props
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Jul 6, 2024
1 parent 6b01f4d commit aa44a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/image/src/use-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function useImage(originalProps: UseImageProps) {
style: {
// img has `height: auto` by default
// passing the custom height here to override if it is specified
...(props?.height && {height: h}),
...(otherProps?.height && {height: h}),
...props.style,
...otherProps.style,
},
Expand Down

0 comments on commit aa44a1b

Please sign in to comment.