mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 15:05:32 +00:00
Fix setting preset's tags
This commit is contained in:
@@ -16,7 +16,8 @@ iD.ui.TagEditor = function() {
|
||||
entity = selection.datum();
|
||||
|
||||
if (preset) {
|
||||
tags = _.extend(_.omit(tags, _.keys(presetMatch.match.tags)), preset.match.tags);
|
||||
if (presetMatch) tags = _.omit(tags, _.keys(presetMatch.match.tags));
|
||||
tags = _.extend(_.omit(tags), preset.match.tags);
|
||||
}
|
||||
|
||||
presetMatch = preset || presetMatch || presetData.matchTags(entity);
|
||||
|
||||
Reference in New Issue
Block a user