fix erroneous mismatched_geometry warning for preset-less tags

This commit is contained in:
Kyle Hensel
2024-11-02 18:15:28 +11:00
parent f5e36cfa80
commit 50309005a1

View File

@@ -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;
}