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 <zwl.s...@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-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to