From e2574e5051eb2f2c4418d6d38a2b60db733f9db6 Mon Sep 17 00:00:00 2001 From: Sanjeev Lakhwani Date: Thu, 30 May 2024 14:29:04 -0400 Subject: [PATCH] refactor(chartUtils): Resolved lint issues --- src/util/chartUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/chartUtils.ts b/src/util/chartUtils.ts index 5228420..e6e1da3 100644 --- a/src/util/chartUtils.ts +++ b/src/util/chartUtils.ts @@ -18,7 +18,7 @@ export const useTransformedChartData = ( removeEmpty: origRemoveEmpty, }: CategoricalChartDataWithTransforms, defaultRemoveEmpty = true, - sortY = false, + sortY = false ) => useMemo(() => { const removeEmpty = origRemoveEmpty ?? defaultRemoveEmpty; @@ -34,4 +34,4 @@ export const useTransformedChartData = ( if (sortY) data.sort((a, b) => a.y - b.y); return data; - }, [originalData, preFilter, dataMap, postFilter, origRemoveEmpty]); + }, [dataMap, defaultRemoveEmpty, originalData, origRemoveEmpty, preFilter, postFilter, sortY]);