Commit 3b1231ec authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

update static

parent 8e8bf2f5
...@@ -374,9 +374,12 @@ ...@@ -374,9 +374,12 @@
// if any of the keys is not in the allowed_sub_keys // if any of the keys is not in the allowed_sub_keys
if (!(allowed_sub_keys.indexOf(sub_keys[j]) > -1)) { if (!(allowed_sub_keys.indexOf(sub_keys[j]) > -1)) {
// remove it // remove it
delete results[Object.keys(results)[0]][keys[index]][sub_keys[i]]; delete results[Object.keys(results)[0]][keys[index]][sub_keys[j]];
} }
} }
} else {
// if the definition has no props then the object is empty
results[Object.keys(results)[0]][keys[index]] = {};
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment