This commit is contained in:
SPGoding
2019-12-30 10:38:42 -06:00
parent 01a04c11f6
commit 512e75f7f6

View File

@@ -440,6 +440,12 @@ function generateObject(data, struct, options) {
$body.append($field);
}
}
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
}
}
$body.children().first().children('button').removeClass('mt-3');
$body.children().first().removeClass('mt-3');
return {out: out, component: $el};