You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2024/01/25 00:17:16 UTC
(superset) branch master updated: fix(logging): Filter out undefined columns (#26314)
This is an automated email from the ASF dual-hosted git repository.
johnbodley 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 01fdfbee09 fix(logging): Filter out undefined columns (#26314)
01fdfbee09 is described below
commit 01fdfbee0952d88b31910237e6e8a0c652dd65b2
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Thu Jan 25 13:17:10 2024 +1300
fix(logging): Filter out undefined columns (#26314)
---
superset-frontend/src/dashboard/components/gridComponents/Chart.jsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
index a604653914..27f2be4059 100644
--- a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
+++ b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
@@ -270,7 +270,9 @@ class Chart extends React.Component {
changeFilter(newSelectedValues = {}) {
this.props.logEvent(LOG_ACTIONS_CHANGE_DASHBOARD_FILTER, {
id: this.props.chart.id,
- columns: Object.keys(newSelectedValues),
+ columns: Object.keys(newSelectedValues).filter(
+ key => newSelectedValues[key] !== null,
+ ),
});
this.props.changeFilter(this.props.chart.id, newSelectedValues);
}