From 01fdfbee0952d88b31910237e6e8a0c652dd65b2 Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:17:10 +1300 Subject: [PATCH] fix(logging): Filter out undefined columns (#26314) --- .../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 a60465391427..27f2be405911 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); }