Skip to content

Commit

Permalink
fix(logging): Filter out undefined columns (#26314)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley committed Jan 25, 2024
1 parent 11a60c9 commit 01fdfbe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 01fdfbe

Please sign in to comment.