mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 17:20:30 +02:00
fix erroneous mismatched_geometry warning for preset-less tags
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user