From 29b35748c50e0e6dd4649e2643d95f8737ae4931 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Wed, 5 Apr 2023 12:42:17 +0200 Subject: [PATCH] fix: useMemo dependency --- app/charts/column/columns-state.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/charts/column/columns-state.tsx b/app/charts/column/columns-state.tsx index 1f9d278f2..ad37f1a38 100644 --- a/app/charts/column/columns-state.tsx +++ b/app/charts/column/columns-state.tsx @@ -48,8 +48,8 @@ import { } from "@/configurator/components/ui-helpers"; import { isTemporalDimension, Observation } from "@/domain/data"; import { - useFormatNumber, formatNumberWithUnit, + useFormatNumber, useTimeFormatUnit, } from "@/formatters"; import { @@ -224,6 +224,7 @@ const useColumnsState = ( fields.x.sorting, fields.x.useAbbreviations, xDimension, + chartConfig.filters, ]); const yMeasure = measures.find((d) => d.iri === fields.y.componentIri);