Fix false positive of tags suggesting area on features where other tags define the preset (close #5945, re: #5933)

This commit is contained in:
Quincy Morgan
2019-02-25 13:10:55 -05:00
parent ca0da282c2
commit 66301864c1
+3 -3
View File
@@ -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 [];
}