Skip to content

Commit c2533f3

Browse files
authored
[tooltips-issue] Fixed issue with undefined tooltips (#1956)
1 parent a1281d0 commit c2533f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/chart/src/components/LinearChart.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ const LinearChart = forwardRef<SVGAElement, LinearChartProps>(({ parentHeight, p
15331533
Object.entries(tooltipData.data).length > 0 &&
15341534
tooltipOpen &&
15351535
showTooltip &&
1536+
!tooltipData?.data?.some(subArray => subArray.some(item => item === undefined)) &&
15361537
tooltipData.dataYPosition &&
15371538
tooltipData.dataXPosition && (
15381539
<>

0 commit comments

Comments
 (0)