Skip to content

Commit

Permalink
fix(spatial-filter): fix bug when _internal is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed May 11, 2020
1 parent dc9cb5d commit b7a6354
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class SpatialFilterToolComponent {
for (const feature of features) {
if (this.type === SpatialFilterType.Predefined) {
for (const layer of this.map.layers) {
if (layer.options._internal.code === feature.properties.code) {
if (layer.options._internal && layer.options._internal.code === feature.properties.code) {
return;
}
if (layer.title.startsWith('Zone')) {
Expand Down

0 comments on commit b7a6354

Please sign in to comment.