diff --git a/package.json b/package.json index e054fd6b9a..4cf31b65b7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@globalfishingwatch/maplibre-gl", "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library", - "version": "2.1.9-gfw.22", + "version": "2.1.9-gfw.23", "main": "dist/maplibre-gl.js", "style": "dist/maplibre-gl.css", "license": "BSD-3-Clause", diff --git a/src/style/style.ts b/src/style/style.ts index 82af00169d..16a92eb9fd 100644 --- a/src/style/style.ts +++ b/src/style/style.ts @@ -1262,7 +1262,7 @@ class Style extends Evented { _debouncedUpdateSource = debounce( (id: string, transform: Transform) => { - this.sourceCaches[id].update(transform); + this.sourceCaches[id]?.update(transform); }, 60, {leading: true} );