Skip to content

Commit e840f9e

Browse files
Merge pull request #101 from phildrip/master
Fixed error when treeData is an object (not an array).
2 parents dda6b54 + 7762e16 commit e840f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/abn_tree_directive.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ module.directive 'abnTree',['$timeout',($timeout)->
3737
return
3838

3939
if !scope.treeData.length?
40-
if treeData.label?
41-
scope.treeData = [ treeData ]
40+
if scope.treeData.label?
41+
scope.treeData = [ scope.treeData ]
4242
else
4343
alert 'treeData should be an array of root branches'
4444
return

0 commit comments

Comments
 (0)