Skip to content

Commit

Permalink
Don't prevent updating feature if type is different
Browse files Browse the repository at this point in the history
  • Loading branch information
piranna committed Sep 4, 2024
1 parent 8b81953 commit 7817a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Leaflet.GeoSSE.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const GeoSSE = L.GeoJSON.extend({
const {type} = feature.geometry;

if(geometry.type !== type)
return console.warn(
console.warn(
`Feature type mismatch: existing feature type is ${geometry.type} ` +
`and new feature type is ${type}.`, feature
);
Expand Down

0 comments on commit 7817a7e

Please sign in to comment.