fix(model): fix issue in model pane where the first element of array models is undefined

test-unit-sauce
Brian Ford 11 years ago
parent d0fa314191
commit 2da618fdd7

@ -21,7 +21,7 @@ angular.module('panelApp').directive('batJsonTree', function($compile) {
var i;
html += '<div class="scope-branch">[ ';
if (object.length > 0) {
html += buildDom(object[i]);
html += buildDom(object[0]);
for (i = 1; i < object.length; i++) {
html += ', ' + buildDom(object[i]);
}