diff --git a/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx b/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx index 446d6e3943ca1..fe6b0194fc405 100644 --- a/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx +++ b/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx @@ -67,7 +67,7 @@ export default class AdhocMetricEditPopover extends React.Component { constructor(props) { super(props); this.onSave = this.onSave.bind(this); - this.onRestStateAndClose = this.onRestStateAndClose.bind(this); + this.onResetStateAndClose = this.onResetStateAndClose.bind(this); this.onColumnChange = this.onColumnChange.bind(this); this.onAggregateChange = this.onAggregateChange.bind(this); this.onSavedMetricChange = this.onSavedMetricChange.bind(this); @@ -118,7 +118,7 @@ export default class AdhocMetricEditPopover extends React.Component { this.props.onClose(); } - onRestStateAndClose() { + onResetStateAndClose() { this.setState( { adhocMetric: this.props.adhocMetric, @@ -401,7 +401,7 @@ export default class AdhocMetricEditPopover extends React.Component {