mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Account for all tags added upon choosing a preset, not just those in the preset's tags property
This commit is contained in:
@@ -420,7 +420,7 @@ export function rendererFeatures(context) {
|
||||
if (!_hidden.length) return false;
|
||||
if (!preset.tags) return false;
|
||||
for (var i = 0; i < _hidden.length; i++) {
|
||||
if (_features[_hidden[i]].filter(preset.tags, geometry)) {
|
||||
if (_features[_hidden[i]].filter(preset.setTags({}, geometry), geometry)) {
|
||||
return _hidden[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user