mirror of
https://github.com/maputnik/editor.git
synced 2026-01-07 14:00:01 +00:00
Incorrectly checking for falsey when should be checking for presence.
This commit is contained in:
@@ -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