You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/06/16 15:15:52 UTC

[incubator-echarts-doc] 01/02: fix levels not treated as an array.

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

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

commit a13aced3c2ace5888f1218d195a501b1d29c4bb6
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Jun 16 23:14:57 2020 +0800

    fix levels not treated as an array.
---
 tool/extractDesc.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tool/extractDesc.js b/tool/extractDesc.js
index 9490cca..15d545d 100644
--- a/tool/extractDesc.js
+++ b/tool/extractDesc.js
@@ -58,7 +58,7 @@ function convertToTree(rootSchema, rootNode) {
         if (schema.default != null) {
             nodeBase.default = schema.default;
         }
-        else if (schema.items) {    // Array also may has properties.
+        if (schema.items) {    // Array also may has properties.
             nodeBase.isArray = true;
         }
         else if (schema.properties && Object.keys(schema.properties).length) {


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