Skip to content

Commit

Permalink
Second attempt to fix empty tooltip showing up in host details (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster authored Oct 25, 2024
1 parent 5fdfe56 commit 78b783d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/common/AvailableSoftwareUpdates/Indicator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ function Indicator({
onNavigate,
}) {
const clickHandler = isError ? () => {} : onNavigate;
const tooltipEnabled = Boolean(isError && tooltip);

return (
<Tooltip isEnabled={isError && tooltip} content={tooltip} wrap={false}>
<Tooltip isEnabled={tooltipEnabled} content={tooltip} wrap={false}>
<div
role="button"
tabIndex={0}
Expand Down

0 comments on commit 78b783d

Please sign in to comment.