We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29484b5 commit 6bca5efCopy full SHA for 6bca5ef
src/components/TreeNode.vue
@@ -33,10 +33,10 @@ export default {
33
childrenLevel() {
34
return this.level + 1
35
},
36
- isRoot() {return this.data.isRoot},
+ isRoot() {return this.data && this.data.isRoot},
37
childrenVisible() {
38
const {data} = this
39
- return this.isRoot || data.children && data.children.length && data.open
+ return this.isRoot || data && data.children && data.children.length && data.open
40
41
innerBackStyle() {
42
const r = {
0 commit comments