mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
Fix false positive of tags suggesting area on features where other tags define the preset (close #5945, re: #5933)
This commit is contained in:
@@ -19,9 +19,9 @@ export function validationTagSuggestsArea() {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (context.presets().matchTags(entity.tags, 'line') ===
|
||||
context.presets().matchTags(entity.tags, 'area')) {
|
||||
// the preset allows lines and making this an area wouldn't matter
|
||||
if (context.presets().matchTags(tagSuggestingArea, 'line') ===
|
||||
context.presets().matchTags(tagSuggestingArea, 'area')) {
|
||||
// these tags also allow lines and making this an area wouldn't matter
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user