You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by yj...@apache.org on 2021/01/10 03:41:23 UTC

[superset] branch master updated: chore: Fix typo “Rest” to “Reset” (#12392)

This is an automated email from the ASF dual-hosted git repository.

yjc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new f13f2e2  chore: Fix typo “Rest” to “Reset” (#12392)
f13f2e2 is described below

commit f13f2e2ed3f1e17b51afbf2b1a2756d81fca3de3
Author: Junlin Chen <ju...@preset.io>
AuthorDate: Sat Jan 9 19:40:28 2021 -0800

    chore: Fix typo “Rest” to “Reset” (#12392)
---
 superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx b/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx
index 446d6e3..fe6b019 100644
--- a/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx
+++ b/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx
@@ -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
           >