From 64472846bb42d6c08e3e25f127e0c0abb22d1578 Mon Sep 17 00:00:00 2001 From: SPGoding Date: Mon, 30 Dec 2019 14:30:33 -0600 Subject: [PATCH] Fix #58 --- js/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/view.js b/js/view.js index 69f67f75..e0f4241c 100644 --- a/js/view.js +++ b/js/view.js @@ -440,7 +440,7 @@ function generateObject(data, struct, options) { $body.append($field); } } - if (struct.card === false) { + if (!struct.collapse) { // 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