Skip to content

Commit

Permalink
fix(logging): Filter out undefined columns (apache#26314)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and eschutho committed Jan 30, 2024
1 parent b261c47 commit b4e972b
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 b4e972b

Please sign in to comment.