mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-28 22:56:31 +02:00
Fix duplicate undo entries (fixes #1105)
This commit is contained in:
@@ -2,7 +2,8 @@ iD.ui.Inspector = function(context, entity) {
|
||||
var tagEditor;
|
||||
|
||||
function changeTags(tags) {
|
||||
if (!_.isEqual(entity.tags, tags)) {
|
||||
entity = context.entity(entity.id);
|
||||
if (entity && !_.isEqual(entity.tags, tags)) {
|
||||
context.perform(
|
||||
iD.actions.ChangeTags(entity.id, tags),
|
||||
t('operations.change_tags.annotation'));
|
||||
|
||||
Reference in New Issue
Block a user