Skip to content

Commit 4e9d19f

Browse files
authored
fix(toolbar): dont render tooltip if preview is empty (#622)
1 parent 06d4c6c commit 4e9d19f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/toolbar/PreviewTooltip.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ type PreviewTooltipProps = {
1414
};
1515

1616
export const PreviewTooltip: React.FC<PreviewTooltipProps> = ({preview, children}) => {
17+
if (!preview) return children;
18+
1719
return (
1820
<Tooltip
1921
placement={['right', 'left']}

0 commit comments

Comments
 (0)