Skip to content

Commit

Permalink
fix: null check
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Dec 11, 2024
1 parent 7ce4b5f commit b995edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default class Tooltip extends PureComponent<TooltipProps> {

return (
<div
style={{ ...style, "--tooltip-max-width": `${maxWidth}px` } as CSSProperties}
style={maxWidth ? ({ ...style, "--tooltip-max-width": `${maxWidth}px` } as CSSProperties) : style}
className={cx(styles.tooltip, getStyle(styles, camelCase(theme)), className)}
>
{image && <img className={styles.image} src={image} alt="" />}
Expand Down

0 comments on commit b995edc

Please sign in to comment.