Fix error upon changing raw changeset tags

This commit is contained in:
Quincy Morgan
2020-03-23 14:07:40 -07:00
parent a3ae06001a
commit 628b53eff6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export function uiChangesetEditor(context) {
_fieldsArr.forEach(function(field) {
field
.on('change', function(t, onInput) {
dispatch.call('change', field, t, onInput);
dispatch.call('change', field, undefined, t, onInput);
});
});
}
+1 -1
View File
@@ -444,7 +444,7 @@ export function uiCommit(context) {
}
function changeTags(changed, onInput) {
function changeTags(_, changed, onInput) {
if (changed.hasOwnProperty('comment')) {
if (changed.comment === undefined) {
changed.comment = '';