diff --git a/src/js/background.js b/src/js/background.js index ffa3b1f..c8c8d02 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -360,6 +360,7 @@ app.GridNodes.sync = function(gridNode, rootPath, callback){ // Sync GridNodes w if(! gridNode.children) gridNode.children = []; else { for(var i=gridNode.children.length-1; i>=0; i--){ + if(!gridNode.children[i]) gridNode.children[i] = { type: app.GridNodes.GridNodeType.empty }; if(gridNode.children[i].type==app.GridNodes.GridNodeType.empty){ EmptyNodes.unshift(gridNode.children[i]); } else {