From e5a52a871cce58a61a618b97222eb64a460382fb Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 12 May 2025 11:00:26 -0600 Subject: [PATCH] use memo to consume trendlines series --- .../BusterChartJS/hooks/useSeriesOptions/useSeriesOptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/useSeriesOptions.ts b/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/useSeriesOptions.ts index 48fbb1d5d..f64e8951e 100644 --- a/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/useSeriesOptions.ts +++ b/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/useSeriesOptions.ts @@ -62,7 +62,7 @@ export const useSeriesOptions = ({ columnSettings, trendlineSeries }); - }, [datasetOptions, columnSettings, columnLabelFormats, xAxisKeys, sizeKey]); + }, [datasetOptions, columnSettings, columnLabelFormats, xAxisKeys, sizeKey, trendlineSeries]); const sizeOptions: SeriesBuilderProps['sizeOptions'] = useMemo(() => { if (!sizeKey || sizeKey.length === 0) {