Skip to content

Commit

Permalink
Update Snapping.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Feb 16, 2024
1 parent d15ba86 commit 393ae7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Mixins/Snapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const SnapMixin = {
this.debugIndicatorLines = debugIndicatorLines;
},
_handleSnapLayerRemoval({ layer }) {
if (!layer._leaflet_id) {
if (!layer._leaflet_id || !this._snapList) {
return;
}
// find the layers index in snaplist
Expand Down

0 comments on commit 393ae7a

Please sign in to comment.