mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
Merge branch 'commit' of https://github.com/Abbe98/iD into Abbe98-commit
This commit is contained in:
@@ -59,13 +59,18 @@ export function uiCommit(context) {
|
||||
if (err) return;
|
||||
|
||||
var comments = [];
|
||||
var addedComments = [];
|
||||
|
||||
for (var i = 0; i < changesets.length; i++) {
|
||||
if (changesets[i].tags.comment) {
|
||||
comments.push({
|
||||
title: changesets[i].tags.comment,
|
||||
value: changesets[i].tags.comment
|
||||
});
|
||||
if (addedComments.indexOf(changesets[i].tags.comment) === -1) {
|
||||
comments.push({
|
||||
title: changesets[i].tags.comment,
|
||||
value: changesets[i].tags.comment
|
||||
});
|
||||
|
||||
addedComments.push(changesets[i].tags.comment);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user