Skip to content

Commit

Permalink
fix: Handle null tooltip data (#2892)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Oct 26, 2023
1 parent fc9a277 commit a1190ae
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions frontend/web/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,18 @@ const Tooltip = ({
) : (
<span className='ion ion-ios-help' data-for={id} data-tip />
)}
<ReactTooltip
html
id={id}
place={place || 'top'}
type='dark'
effect='solid'
>
{tooltipStyler(plainText, children, noIcon)}
</ReactTooltip>
{!!children && (
<ReactTooltip
html
id={id}
place={place || 'top'}
type='dark'
effect='solid'
>
{tooltipStyler(plainText, children, noIcon)}
</ReactTooltip>
)}

</span>
)
}
Expand Down

3 comments on commit a1190ae

@vercel
Copy link

@vercel vercel bot commented on a1190ae Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs.flagsmith.com
docs-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on a1190ae Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a1190ae Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.