From d3f3c9a43fd99e37f918d6d56ae526e317b09f6f Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sun, 3 May 2015 01:01:01 -0400 Subject: [PATCH] Don't allow duplicate ids in multifetch request list (closes #2626) --- js/id/core/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/core/connection.js b/js/id/core/connection.js index 652099806..95e6fab4d 100644 --- a/js/id/core/connection.js +++ b/js/id/core/connection.js @@ -70,7 +70,7 @@ iD.Connection = function() { return result; } - _.each(_.groupBy(ids, iD.Entity.id.type), function(v, k) { + _.each(_.groupBy(_.uniq(ids), iD.Entity.id.type), function(v, k) { var type = k + 's', osmIDs = _.map(v, iD.Entity.id.toOSM);