Skip to content

Commit

Permalink
fix erroneous mismatched_geometry warning for preset-less tags
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed Nov 2, 2024
1 parent cd521a9 commit 3195b5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/validations/mismatched_geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export function validationMismatchedGeometry() {
return null;
}

if (asLine.isFallback() && asArea.isFallback() && !deepEqual(tagSuggestingArea, { area: 'yes' })) {
// if the entity matches the fallback preset, regardless of the
// geometry, then changing the geometry will not help.
return null;
}

return tagSuggestingArea;
}

Expand Down

0 comments on commit 3195b5f

Please sign in to comment.