Skip to content

Commit

Permalink
chore: Fix typo “Rest” to “Reset” (#12392)
Browse files Browse the repository at this point in the history
  • Loading branch information
junlincc authored and villebro committed Jan 12, 2021
1 parent dc203c1 commit bd6525f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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);
Expand Down Expand Up @@ -124,7 +124,7 @@ export default class AdhocMetricEditPopover extends React.Component {
this.props.onClose();
}

onRestStateAndClose() {
onResetStateAndClose() {
this.setState(
{
adhocMetric: this.props.adhocMetric,
Expand Down Expand Up @@ -411,7 +411,7 @@ export default class AdhocMetricEditPopover extends React.Component {
<div>
<Button
buttonSize="small"
onClick={this.onRestStateAndClose}
onClick={this.onResetStateAndClose}
data-test="AdhocMetricEdit#cancel"
cta
>
Expand Down

0 comments on commit bd6525f

Please sign in to comment.