From 50309005a142c4ed7e7dc5ca8d55ed3e0eff52fa Mon Sep 17 00:00:00 2001 From: Kyle Hensel Date: Sat, 2 Nov 2024 18:15:28 +1100 Subject: [PATCH] fix erroneous `mismatched_geometry` warning for preset-less tags --- modules/validations/mismatched_geometry.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/validations/mismatched_geometry.js b/modules/validations/mismatched_geometry.js index d1efa41fa..7acae710a 100644 --- a/modules/validations/mismatched_geometry.js +++ b/modules/validations/mismatched_geometry.js @@ -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; }