Skip to content

Conversation

@disarticulate
Copy link
Contributor

removeLayer attempts to filter:

this.layersToAdd = this.layersToAdd.filter((l) => l.name !== layer.name);

Null value creates undefined error.

removeLayer attempts to filter:
```
this.layersToAdd = this.layersToAdd.filter((l) => l.name !== layer.name);
```
Null value creates undefined error.
@nmezzopera
Copy link
Contributor

nmezzopera commented Oct 27, 2018

@disarticulate Edit: my mistake, merging this

@nmezzopera nmezzopera merged commit 9559639 into vue-leaflet:master Oct 27, 2018
@disarticulate
Copy link
Contributor Author

The data property of it starts as an empty array, and I don't see any other uses for it except as an array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants