Skip to content

Commit

Permalink
Allow delete polygon when for multipolygon geometries (#372)
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Rodriguez <[email protected]>
  • Loading branch information
adrianrv and Adrian Rodriguez authored May 13, 2024
1 parent f9c96ca commit 615dc97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet/static/leaflet/leaflet.forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ L.GeometryField = L.Class.extend({
},

onDeleted: function (e) {
var layer = e.layer;
var layer = e.layer || e.layers;
this.drawnItems.removeLayer(layer);
this.store.save(this.drawnItems);
},
Expand Down

0 comments on commit 615dc97

Please sign in to comment.