Skip to content

Commit

Permalink
Merge branch 'master' into fix/pie-chart-data-label
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis authored May 19, 2020
2 parents e16d63b + c68b162 commit 8f0be25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/charts/src/components/PieChart/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const PieChart: FC<PieChartProps> = forwardRef((props: PieChartProps, ref: Ref<a
onDataPointClick(
enrichEventWithDetails(event, {
value: payload.value,
dataKey: payload.tooltipPayload?.[0].dataKey,
dataKey: payload.tooltipPayload?.[0]?.dataKey,
name: payload.name,
payload: payload.payload,
dataIndex
Expand Down

0 comments on commit 8f0be25

Please sign in to comment.