Revert "Fix #58"

This reverts commit 64472846bb.
This commit is contained in:
SPGoding
2019-12-30 14:48:21 -06:00
parent 64472846bb
commit de7116e57f

View File

@@ -440,7 +440,7 @@ function generateObject(data, struct, options) {
$body.append($field);
}
}
if (!struct.collapse) {
if (struct.card === false) {
// Note: JSON.parse(JSON.stringify(out)) can remove undefined values in the out object.
if (Object.keys(JSON.parse(JSON.stringify(out))).length === 0) {
out = undefined