LP1811288 Allow Combobox to default to field id
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / share / combobox / combobox.component.ts
index 272a271..8b018d5 100644 (file)
@@ -102,7 +102,8 @@ export class ComboboxComponent implements OnInit {
         this.defaultSelectionApplied = false;
 
         this.formatDisplayString = (result: ComboboxEntry) => {
-            return result.label.trim();
+            const display = result.label || result.id;
+            return (display + '').trim();
         };
     }