You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2023/10/11 20:25:09 UTC

[superset] 01/01: fix: finestTemporalGrainFormatter

This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch sc_75338
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 1761e5b0534e314d19ccf0744ca41fedfaaac553
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Wed Oct 11 14:24:48 2023 -0600

    fix: finestTemporalGrainFormatter
---
 .../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 bef70e68f3..7d8ab55fb5 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(