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 Jan 10, 2021
1 parent 99de8a4 commit f13f2e2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -118,7 +118,7 @@ export default class AdhocMetricEditPopover extends React.Component {
this.props.onClose();
}

onRestStateAndClose() {
onResetStateAndClose() {
this.setState(
{
adhocMetric: this.props.adhocMetric,
Expand Down Expand Up @@ -401,7 +401,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 f13f2e2

Please sign in to comment.