Commit dbbaad36 authored by yann300's avatar yann300

fix TreeView UI

parent ff052d75
...@@ -48,7 +48,7 @@ function extractData (item, parent, key) { ...@@ -48,7 +48,7 @@ function extractData (item, parent, key) {
ret.isMapping = true ret.isMapping = true
ret.self = item.type ret.self = item.type
} else { } else {
ret.children = [] ret.children = null
ret.self = item.value ret.self = item.value
ret.type = item.type ret.type = item.type
} }
......
...@@ -175,7 +175,7 @@ class TreeView { ...@@ -175,7 +175,7 @@ class TreeView {
ret.isLeaf = false ret.isLeaf = false
} else { } else {
ret.self = item ret.self = item
ret.children = [] ret.children = null
ret.isNode = false ret.isNode = false
ret.isLeaf = true ret.isLeaf = true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment