Don't show yes as a suggestion for typeCombo fields

This commit is contained in:
Quincy Morgan
2020-01-15 10:30:38 -05:00
parent df3865c96f
commit 361358392f
+7
View File
@@ -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;
});