Fix duplicate undo entries (fixes #1105)

This commit is contained in:
John Firebaugh
2013-03-22 11:23:23 -07:00
parent 9f17a7ce34
commit aef17c1968
+2 -1
View File
@@ -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'));