Fix incorrect scheduledZoom type check

This commit is contained in:
James Lyne 2021-12-23 23:00:23 +00:00
parent 27231ff5ff
commit 9ee99c9290

View File

@ -204,7 +204,7 @@ export default defineComponent({
location = newValue.center; location = newValue.center;
} }
if(typeof this.scheduledZoom === 'undefined') { if(this.scheduledZoom == null) {
if(typeof newValue.defaultZoom !== 'undefined') { if(typeof newValue.defaultZoom !== 'undefined') {
this.scheduledZoom = newValue.defaultZoom; this.scheduledZoom = newValue.defaultZoom;
} else { } else {