getContent of expandablefield corrected

parent 427593de
...@@ -486,9 +486,12 @@ ...@@ -486,9 +486,12 @@
// remove it // remove it
delete results[ delete results[
Object.keys(results)[0] Object.keys(results)[0]
][keys[index]][sub_keys[i]]; ][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