From 082bd5fd422f5544649ed71fc1e66925d4163475 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Mon, 4 Mar 2013 16:34:36 -0500 Subject: [PATCH] Fix preset defaults --- js/id/presets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/presets.js b/js/id/presets.js index bb2a5565d..d2f22efdd 100644 --- a/js/id/presets.js +++ b/js/id/presets.js @@ -49,7 +49,7 @@ iD.presets = function(context) { all.defaults = function(entity, n) { var rec = recent.matchType(entity, context.graph()).collection.slice(0, 4), - def = defaults[entity.geometry(context.graph())].collection.slice(0, n - rec.length - 1); + def = _.uniq(rec.concat(defaults[entity.geometry(context.graph())].collection)).slice(0, n - 1); return iD.presets.Collection(_.unique(rec.concat(def).concat(other))); };