mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: Fix typo “Rest” to “Reset” (#12392)
This commit is contained in:
@@ -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
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user