You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2021/01/12 12:34:58 UTC

[superset] 03/08: chore: Fix typo “Rest” to “Reset” (#12392)

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

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

commit bd6525fdf50f4a4b68cf70f81732e845e30f92bc
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 eb1eff7..a6218b3 100644
--- a/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx
+++ b/superset-frontend/src/explore/components/AdhocMetricEditPopover.jsx
@@ -73,7 +73,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);
@@ -124,7 +124,7 @@ export default class AdhocMetricEditPopover extends React.Component {
     this.props.onClose();
   }
 
-  onRestStateAndClose() {
+  onResetStateAndClose() {
     this.setState(
       {
         adhocMetric: this.props.adhocMetric,
@@ -411,7 +411,7 @@ export default class AdhocMetricEditPopover extends React.Component {
         <div>
           <Button
             buttonSize="small"
-            onClick={this.onRestStateAndClose}
+            onClick={this.onResetStateAndClose}
             data-test="AdhocMetricEdit#cancel"
             cta
           >