chore: Fix typo “Rest” to “Reset” (#12392)

This commit is contained in:
Junlin Chen 2021-01-09 19:40:28 -08:00 committed by GitHub
parent 99de8a49b6
commit f13f2e2ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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 {
<div>
<Button
buttonSize="small"
onClick={this.onRestStateAndClose}
onClick={this.onResetStateAndClose}
data-test="AdhocMetricEdit#cancel"
cta
>