diff --git a/js/view.js b/js/view.js index e0f4241c..69f67f75 100644 --- a/js/view.js +++ b/js/view.js @@ -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