From 897e51550b289170618696ac10d7a6850a1d7dba Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Wed, 9 Jul 2025 21:41:35 -0600 Subject: [PATCH] Update chartjs to not clear or stop --- .../ui/charts/BusterChartJS/core/chart.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/apps/web/src/components/ui/charts/BusterChartJS/core/chart.tsx b/apps/web/src/components/ui/charts/BusterChartJS/core/chart.tsx index bfc0263a7..ff6ce7306 100644 --- a/apps/web/src/components/ui/charts/BusterChartJS/core/chart.tsx +++ b/apps/web/src/components/ui/charts/BusterChartJS/core/chart.tsx @@ -56,19 +56,7 @@ function ChartComponent< reforwardRef(ref, null); if (chartRef.current) { - // Clear all event listeners - chartRef.current.canvas?.replaceWith(chartRef.current.canvas.cloneNode(true)); - - // Stop any animations - chartRef.current.stop(); - - // Clear the chart - chartRef.current.clear(); - - // Destroy the chart instance chartRef.current.destroy(); - - // Nullify the reference chartRef.current = null; } };