From e751101aaa59048873157abcbc90b692e7aa4c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Miko=C5=82ajczak?= Date: Tue, 9 Jan 2024 17:45:42 +0100 Subject: [PATCH] fix #33257 issues --- src/components/Tooltip/BaseTooltip/index.tsx | 2 +- src/pages/home/report/ReportActionItem.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Tooltip/BaseTooltip/index.tsx b/src/components/Tooltip/BaseTooltip/index.tsx index 2adde759b847..2487cbbfe092 100644 --- a/src/components/Tooltip/BaseTooltip/index.tsx +++ b/src/components/Tooltip/BaseTooltip/index.tsx @@ -189,7 +189,7 @@ function Tooltip( (e: MouseEvent) => { updateTargetAndMousePosition(e); if (React.isValidElement(children)) { - children.props.onMouseEnter(e); + children.props.onMouseEnter?.(e); } }, [children, updateTargetAndMousePosition], diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index f48fdd1d53dc..5d8fd2da2558 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -671,7 +671,7 @@ function ReportActionItem(props) { > {(hovered) => (