mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Fix #58
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user