Skip to content

Commit

Permalink
Fix feature modification polygon validation
Browse files Browse the repository at this point in the history
The validation should only be called for polygons.
  • Loading branch information
mzur committed Nov 21, 2023
1 parent 933c6f7 commit 25ec192
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ export default {
return this.featureRevisionMap[feature.getId()] !== feature.getRevision();
})
.map((feature) => {
PolygonValidator.simplifyPolygon(feature);
if (feature.getGeometry().getType() === 'Polygon') {
PolygonValidator.simplifyPolygon(feature);
}
return {
id: feature.getId(),
image_id: feature.get('annotation').image_id,
Expand Down

0 comments on commit 25ec192

Please sign in to comment.