Ivan Asmer 4 years ago
parent
commit
a383a04953
1 changed files with 1 additions and 3 deletions
  1. 1 3
      expand.js

+ 1 - 3
expand.js

@@ -99,13 +99,11 @@ function mmExpandSchema(gqlSchema){
                         }
 
                         const walker = obj =>{
-                            console.log('recursive' , key)
                             for (let [key, value] of Object.entries(obj)){
                                 if (key === '___owner') continue;
                                 let newValue;
                                 if (newValue = checker(value))    obj[key] = newValue;
-                                else if (newValue && typeof newValue === 'object'){
-                                    console.log('recursive' , key)
+                                else if (typeof value === 'object'){
                                     obj[key] = walker(value)
                                 }
                             }