diff --git a/src/components/statistics/StatisticsSearch.js b/src/components/statistics/StatisticsSearch.js index 4dfa4830..b1496dd7 100644 --- a/src/components/statistics/StatisticsSearch.js +++ b/src/components/statistics/StatisticsSearch.js @@ -321,7 +321,7 @@ export default function StatisticsSearch({ height={400} plugins={{ afterDraw: function (chart) { - if (data.datasets[0].data.length <= 0) { + if (totalData.datasets[0].data.length <= 0) { let ctx = chart.chart.ctx; let width = chart.chart.width; let height = chart.chart.height;