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:08 UTC

[superset] branch sc_75338 created (now 1761e5b053)

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

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


      at 1761e5b053 fix: finestTemporalGrainFormatter

This branch includes the following new commits:

     new 1761e5b053 fix: finestTemporalGrainFormatter

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: fix: finestTemporalGrainFormatter

Posted by be...@apache.org.
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(