From 245d70a6eb6061069bae669deefb937eaeeb03fd Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 15 Oct 2017 11:28:21 +0200 Subject: [PATCH] Bug: Somme node are empty and make data unusable --- src/js/background.js | 1 + 1 file changed, 1 insertion(+) 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 {