From dd9442b2e6c00736e9e614385ccd462421fead69 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 25 Jun 2017 19:14:34 +0200 Subject: [PATCH] Fixed error --- assets/js/common/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/common/utils.js b/assets/js/common/utils.js index ac04a29d..a70a536a 100644 --- a/assets/js/common/utils.js +++ b/assets/js/common/utils.js @@ -146,6 +146,9 @@ function clearObject(object){ //Process each node of the object for(i in object){ + if(!object[i]) + continue; + //Check if the node is an object if(object[i].toString() === "[object Object]"){ clearObject(object[i]); //Delete object content