mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-29 07:10:27 +01:00
Incorrectly checking for falsey when should be checking for presence.
This commit is contained in:
parent
4cbcf14588
commit
aead867e27
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue