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

[superset] branch master updated: fix(explore): clear custom label if removed (#12382)

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

junlin 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 662b649  fix(explore): clear custom label if removed (#12382)
662b649 is described below

commit 662b64960f6f31e6d8e99aff06745a33f98df29d
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Sat Jan 9 11:41:41 2021 +0200

    fix(explore): clear custom label if removed (#12382)
---
 superset-frontend/src/explore/components/AdhocMetricEditPopoverTitle.jsx | 1 -
 1 file changed, 1 deletion(-)

diff --git a/superset-frontend/src/explore/components/AdhocMetricEditPopoverTitle.jsx b/superset-frontend/src/explore/components/AdhocMetricEditPopoverTitle.jsx
index 6586f75..61347b4 100644
--- a/superset-frontend/src/explore/components/AdhocMetricEditPopoverTitle.jsx
+++ b/superset-frontend/src/explore/components/AdhocMetricEditPopoverTitle.jsx
@@ -62,7 +62,6 @@ export default class AdhocMetricEditPopoverTitle extends React.Component {
 
   onInputBlur(e) {
     if (e.target.value === '') {
-      e.target.value = this.props.defaultLabel;
       this.props.onChange(e);
     }
     this.onBlur();