This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch enhance-morph
in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/enhance-morph by this push:
new fce0f18 fix(morph): fix null access
fce0f18 is described below
commit fce0f189b931af51c25f5c56fe750c2f4509b266
Author: pissang <[email protected]>
AuthorDate: Tue Feb 2 22:20:05 2021 +0800
fix(morph): fix null access
---
src/chart/custom/transitionHelper.ts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/chart/custom/transitionHelper.ts
b/src/chart/custom/transitionHelper.ts
index 1adfe2d..0e89ac9 100644
--- a/src/chart/custom/transitionHelper.ts
+++ b/src/chart/custom/transitionHelper.ts
@@ -231,6 +231,10 @@ export function getPathList(
export function getPathList(
elements: Element | Element[], needsMorph?: boolean
): DescendentPaths | DescendentPaths[] {
+ if (!elements) {
+ return [];
+ }
+
if (isArray(elements)) {
const pathList = [];
for (let i = 0; i < elements.length; i++) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]