mirror of
https://github.com/maputnik/editor.git
synced 2026-08-26 06:57:26 +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
|
* If we don't have a default value just make one up
|
||||||
*/
|
*/
|
||||||
function findDefaultFromSpec (spec) {
|
function findDefaultFromSpec (spec) {
|
||||||
if (spec.default) {
|
if (spec.hasOwnProperty('default')) {
|
||||||
return spec.default;
|
return spec.default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user