mirror of https://github.com/apache/superset.git
chore: Fix typo “Rest” to “Reset” (#12392)
This commit is contained in:
parent
99de8a49b6
commit
f13f2e2ed3
|
@ -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
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue