Skip to content

Commit

Permalink
fix(logging): Filter out undefined columns (#26314)
Browse files Browse the repository at this point in the history
(cherry picked from commit 01fdfbe)
  • Loading branch information
john-bodley authored and michael-s-molina committed Jan 25, 2024
1 parent a2c78c1 commit c562d72
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,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 c562d72

Please sign in to comment.