ngx-treeview
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "ngx-treeview", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "An Angular treeview component with checkbox", |
@@ -33,2 +33,3 @@ [](https://travis-ci.org/leovo2708/ngx-treeview) | ||
[https://leovo2708.github.io/ngx-treeview/](https://leovo2708.github.io/ngx-treeview/) | ||
([Source code](https://github.com/leovo2708/ngx-treeview/tree/master/src/demo)) | ||
@@ -35,0 +36,0 @@ ## Installation |
@@ -28,3 +28,3 @@ import * as _ from 'lodash'; | ||
} | ||
if (!_.isNil(item.children)) { | ||
if (!_.isNil(item.children) && item.children.length > 0) { | ||
this.children = item.children.map(function (child) { | ||
@@ -31,0 +31,0 @@ if (_this.disabled === true) { |
Sorry, the diff of this file is not supported yet
130587
148