diff --git a/js/id/ui/save.js b/js/id/ui/save.js index f5f14365d..601e3a67d 100644 --- a/js/id/ui/save.js +++ b/js/id/ui/save.js @@ -38,8 +38,6 @@ iD.ui.Save = function(context) { history.imagery_used(), function(err, changeset_id) { loading.remove(); - history.reset(); - map.flush().redraw(); if (err) { var desc = iD.ui.confirm(context.container()) .select('.description'); @@ -47,6 +45,8 @@ iD.ui.Save = function(context) { .text(t('save.error')); desc.append('p').text(err.responseText); } else { + history.reset(); + map.flush().redraw(); success(e, changeset_id); } });