mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 08:17:30 +02:00
Fix crash on selecting relation preset
This commit is contained in:
+4
-1
@@ -87,7 +87,10 @@ export function uiModes(context) {
|
||||
var favoritesCount = items.length;
|
||||
|
||||
if (favoritesCount < 10) {
|
||||
items = _uniqWith(items.concat(context.presets().getRecents()), function(item1, item2) {
|
||||
var recents = context.presets().getRecents().filter(function(recent) {
|
||||
return recent.geometry !== 'relation';
|
||||
});
|
||||
items = _uniqWith(items.concat(), function(item1, item2) {
|
||||
return item1.matches(item2.preset, item2.geometry);
|
||||
});
|
||||
var maxShown = 10;
|
||||
|
||||
Reference in New Issue
Block a user