fix(logging): Filter out undefined columns (#26314)
This commit is contained in:
parent
11a60c92ea
commit
01fdfbee09
|
|
@ -270,7 +270,9 @@ class Chart extends React.Component {
|
||||||
changeFilter(newSelectedValues = {}) {
|
changeFilter(newSelectedValues = {}) {
|
||||||
this.props.logEvent(LOG_ACTIONS_CHANGE_DASHBOARD_FILTER, {
|
this.props.logEvent(LOG_ACTIONS_CHANGE_DASHBOARD_FILTER, {
|
||||||
id: this.props.chart.id,
|
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);
|
this.props.changeFilter(this.props.chart.id, newSelectedValues);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue