Fix #4443 Imagery only updated on first save

This commit is contained in:
Colin Kennedy
2017-10-15 15:45:53 -04:00
parent fd4ca2368d
commit c81cf703f2
+2 -1
View File
@@ -65,7 +65,6 @@ export function uiCommit(context) {
tags = {
comment: context.storage('comment') || '',
created_by: ('iD ' + context.version).substr(0, 255),
imagery_used: context.history().imageryUsed().join(';').substr(0, 255),
host: detected.host.substr(0, 255),
locale: detected.locale.substr(0, 255)
};
@@ -83,6 +82,8 @@ export function uiCommit(context) {
}
tags = _clone(changeset.tags);
tags.imagery_used = context.history().imageryUsed().join(';').substr(0, 255);
changeset = changeset.update({ tags: tags });
var header = selection.selectAll('.header')
.data([0]);