mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Fix an issue where stale warning counts would still appear in changeset tags if they had all been resolved (re: #6123)
This commit is contained in:
@@ -114,6 +114,11 @@ export function uiCommit(context) {
|
||||
}
|
||||
}
|
||||
|
||||
for (var key in tags) {
|
||||
// remove existing warning counts
|
||||
if (key.match(/^warnings:/)) delete tags[key];
|
||||
}
|
||||
|
||||
var warningCountsByType = {};
|
||||
context.validator().getWarnings().forEach(function(warning) {
|
||||
// deletion count can be derived so don't tag that warning in the changeset
|
||||
|
||||
Reference in New Issue
Block a user