Skip to content

Commit

Permalink
Fix TileLayer isLoaded crash (#8074)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyabo authored and Pessimistress committed Aug 29, 2023
1 parent 3ed60c2 commit b3eb6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/geo-layers/src/tile-layer/tile-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default class TileLayer<DataT = any, ExtraPropsT extends {} = {}> 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)
);
}
Expand Down

0 comments on commit b3eb6c7

Please sign in to comment.