From db8fc9b7b4ecaf038f7187fd43db5afc0408dfb6 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Wed, 11 Oct 2023 15:57:23 -0600 Subject: [PATCH] fix: finestTemporalGrainFormatter (#25618) --- .../src/filters/components/Select/SelectFilterPlugin.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx b/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx index bef70e68f395c..7d8ab55fb5571 100644 --- a/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx +++ b/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx @@ -117,9 +117,9 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) { const labelFormatter = useMemo( () => getDataRecordFormatter({ - timeFormatter: finestTemporalGrainFormatter(data.map(el => el.col)), + timeFormatter: finestTemporalGrainFormatter(data.map(el => el[col])), }), - [data], + [data, col], ); const updateDataMask = useCallback(