Incorrectly checking for falsey when should be checking for presence.

This commit is contained in:
orangemug 2019-10-27 10:05:05 +00:00
parent 4cbcf14588
commit aead867e27

View file

@ -18,7 +18,7 @@ function isDataField(value) {
* If we don't have a default value just make one up
*/
function findDefaultFromSpec (spec) {
if (spec.default) {
if (spec.hasOwnProperty('default')) {
return spec.default;
}