mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
correcting build issues
This commit is contained in:
@@ -9,10 +9,10 @@ export function validationManyDeletions() {
|
||||
var nodes=0, ways=0, areas=0, relations=0;
|
||||
|
||||
changes.deleted.forEach(function(c) {
|
||||
if (c.type == 'node') {nodes++}
|
||||
else if (c.type == 'way' && c.geometry(graph) == 'line') {ways++}
|
||||
else if (c.type == 'way' && c.geometry(graph) == 'area') {areas++}
|
||||
else if (c.type == 'relation') {relations++}
|
||||
if (c.type === 'node') {nodes++;}
|
||||
else if (c.type === 'way' && c.geometry(graph) === 'line') {ways++;}
|
||||
else if (c.type === 'way' && c.geometry(graph) === 'area') {areas++;}
|
||||
else if (c.type === 'relation') {relations++;}
|
||||
});
|
||||
if (changes.deleted.length > threshold) {
|
||||
warnings.push({
|
||||
|
||||
Reference in New Issue
Block a user