From fb8f7cc33999c235591397694efe9a1b9158bc4b Mon Sep 17 00:00:00 2001 From: Ilya Boyandin Date: Tue, 22 Aug 2023 18:36:40 +0200 Subject: [PATCH] Fix TileLayer isLoaded crash --- 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) ); }