mirror of
https://github.com/maputnik/editor.git
synced 2026-11-28 21:04:20 +00:00
Incorrectly checking for falsey when should be checking for presence.
This commit is contained in:
1 parent
4cbcf14588
commit
aead867e27
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user