You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2020/08/18 06:17:05 UTC

[incubator-echarts] branch next updated: fix(bar-race): fix nextValue when no text

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

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


The following commit(s) were added to refs/heads/next by this push:
     new 9da374e  fix(bar-race): fix nextValue when no text
9da374e is described below

commit 9da374e386013fcd87abd4227c2a5008a79b6a94
Author: Ovilia <zw...@gmail.com>
AuthorDate: Tue Aug 18 14:15:55 2020 +0800

    fix(bar-race): fix nextValue when no text
---
 src/util/graphic.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/graphic.ts b/src/util/graphic.ts
index 9b6ad08..dbdd8d1 100644
--- a/src/util/graphic.ts
+++ b/src/util/graphic.ts
@@ -578,7 +578,7 @@ function animateOrSetLabel<Props extends PathProps>(
         host && (host.startValue = host.nextValue);
 
         const duration = animatableModel.get('animationDuration');
-        if (!duration) {
+        if (!duration && host) {
             // No animation for the first frame
             host.nextValue = interpolateValues;
         }


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