From 6479b077ce34a2fc8ecb1e4d20eedddb751c5ed4 Mon Sep 17 00:00:00 2001 From: deval Date: Wed, 11 Apr 2018 22:24:44 +0530 Subject: [PATCH 1/2] false-boolean-option-fix| checking for undefined and null for value --- src/js/brutusin-json-forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/brutusin-json-forms.js b/src/js/brutusin-json-forms.js index 49ee5ea..b311bab 100644 --- a/src/js/brutusin-json-forms.js +++ b/src/js/brutusin-json-forms.js @@ -1197,7 +1197,7 @@ if (typeof brutusin === "undefined") { } else if (propertyProvider) { renderTitle(titleContainer, propertyProvider.getValue(), s); } - if (!value) { + if (typeof value === "undefined""" || value === null) { if (typeof initialValue !== "undefined" && initialValue !== null) { value = getInitialValue(id); } else { From 8bba1aa9972fab5cb22cf337e42a5910e1ec409b Mon Sep 17 00:00:00 2001 From: deval Date: Wed, 11 Apr 2018 22:33:50 +0530 Subject: [PATCH 2/2] false-boolean-option-fix| corrected quotes --- src/js/brutusin-json-forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/brutusin-json-forms.js b/src/js/brutusin-json-forms.js index b311bab..155ddbc 100644 --- a/src/js/brutusin-json-forms.js +++ b/src/js/brutusin-json-forms.js @@ -1197,7 +1197,7 @@ if (typeof brutusin === "undefined") { } else if (propertyProvider) { renderTitle(titleContainer, propertyProvider.getValue(), s); } - if (typeof value === "undefined""" || value === null) { + if (typeof value === "undefined" || value === null) { if (typeof initialValue !== "undefined" && initialValue !== null) { value = getInitialValue(id); } else {