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 21:57:30 UTC
[superset] branch master updated: fix: finestTemporalGrainFormatter (#25618)
This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 62bffaf935 fix: finestTemporalGrainFormatter (#25618)
62bffaf935 is described below
commit 62bffaf935e6745dc4a122c4f4f71ef548511d31
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Wed Oct 11 15:57:23 2023 -0600
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 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(