You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/10/13 12:15:14 UTC

[superset] 05/06: fix: finestTemporalGrainFormatter (#25618)

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

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

commit c44f1a32993c32fcf8fff1b3bab9fe60c72d086d
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Wed Oct 11 15:57:23 2023 -0600

    fix: finestTemporalGrainFormatter (#25618)
    
    (cherry picked from commit 62bffaf935e6745dc4a122c4f4f71ef548511d31)
---
 .../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(