From 1b2e92faa58bfa830c1b782bfd0bc8f5337cdd15 Mon Sep 17 00:00:00 2001 From: Ilya Boyandin Date: Sat, 26 Aug 2023 23:34:15 +0200 Subject: [PATCH] Fix TileLayer isLoaded crash (#8074) --- modules/geo-layers/src/tile-layer/tile-layer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/geo-layers/src/tile-layer/tile-layer.ts b/modules/geo-layers/src/tile-layer/tile-layer.ts index 12185e47ec1..6b673b78af6 100644 --- a/modules/geo-layers/src/tile-layer/tile-layer.ts +++ b/modules/geo-layers/src/tile-layer/tile-layer.ts @@ -165,7 +165,7 @@ export default class TileLayer extends } get isLoaded(): boolean { - return this.state?.tileset?.selectedTiles.every( + return this.state?.tileset?.selectedTiles?.every( tile => tile.isLoaded && tile.layers && tile.layers.every(layer => layer.isLoaded) ); }