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

shenyi pushed a commit to branch label-enhancement
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit fba40c7a5ef29381ccb6daabdd7ce1510b04698d
Author: pissang <bm2736...@gmail.com>
AuthorDate: Thu May 28 13:43:05 2020 +0800

    fix: fix not existed emphasis state caused error.
---
 src/util/graphic.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/util/graphic.ts b/src/util/graphic.ts
index 72bf70e..36d7fd3 100644
--- a/src/util/graphic.ts
+++ b/src/util/graphic.ts
@@ -462,7 +462,9 @@ function elementStateProxy(this: Displayable, stateName: 
string): DisplayableSta
                 state.style = emphasisStyle;
             }
         }
-        state.z2 = this.z2 + Z2_EMPHASIS_LIFT;
+        if (state) {
+            state.z2 = this.z2 + Z2_EMPHASIS_LIFT;
+        }
     }
 
     return state;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to