diff --git a/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx b/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx index 7d78646e79f20..a4138e483e6a8 100644 --- a/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx +++ b/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx @@ -19,8 +19,8 @@ const defaultProps = { const checkboxStyle = { paddingRight: '5px' }; export default class CheckboxControl extends React.Component { - onChange(checked) { - this.props.onChange(checked); + onChange() { + this.props.onChange(!this.props.value); } render() { return (