mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Don't show yes as a suggestion for typeCombo fields
This commit is contained in:
@@ -183,6 +183,13 @@ export function uiFieldCombo(field, context) {
|
||||
if (err) return;
|
||||
|
||||
data = data.filter(function(d) {
|
||||
|
||||
if (field.type === 'typeCombo' && d.value === 'yes') {
|
||||
// don't show the fallback value
|
||||
return false;
|
||||
}
|
||||
|
||||
// don't show values with very low usage
|
||||
return !d.count || d.count > 10;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user