From 03f5e40ae2d5eac46ca7e8ed1653dc9d2ab8f305 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 5 Dec 2017 16:04:02 -0800 Subject: [PATCH] Remove unused callbacks when setting state --- .../components/controls/DateFilterControl.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/superset/assets/javascripts/explore/components/controls/DateFilterControl.jsx b/superset/assets/javascripts/explore/components/controls/DateFilterControl.jsx index eb35c01246076..fc365bd0f7b3a 100644 --- a/superset/assets/javascripts/explore/components/controls/DateFilterControl.jsx +++ b/superset/assets/javascripts/explore/components/controls/DateFilterControl.jsx @@ -58,23 +58,23 @@ export default class DateFilterControl extends React.Component { } } onControlChange(target, opt) { - this.setState({ [target]: opt.value }, this.onChange); + this.setState({ [target]: opt.value }); } onNumberChange(event) { - this.setState({ num: event.target.value }, this.onChange); + this.setState({ num: event.target.value }); } onFreeChange(event) { - this.setState({ free: event.target.value }, this.onChange); + this.setState({ free: event.target.value }); } setType(type) { - this.setState({ type }, this.onChange); + this.setState({ type }); } setValue(val) { - this.setState({ type: 'free', free: val }, this.onChange); + this.setState({ type: 'free', free: val }); this.close(); } setDatetime(dttm) { - this.setState({ dttm: dttm.format().substring(0, 19) }, this.onChange); + this.setState({ dttm: dttm.format().substring(0, 19) }); } close() { let val;