Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Null check.
Mike Cao91e004ebfba2
diff --git a/src/components/charts/Chart.tsx b/src/components/charts/Chart.tsxindex abaa6eb81..ba49796eb 100644--- a/src/components/charts/Chart.tsx+++ b/src/components/charts/Chart.tsx@@ -111,7 +111,7 @@ export function Chart({} else {const { index } = item;const meta = chart.current.getDatasetMeta(0);- const hidden = !!meta.data[index].hidden;+ const hidden = !!meta?.data?.[index]?.hidden;meta.data[index].hidden = !hidden;chart.current.legend.legendItems[index].hidden = !hidden;