(choice: ModelChoice)
| 360 | } |
| 361 | |
| 362 | function addSelectionDetail(choice: ModelChoice) { |
| 363 | const detail = selectionDetail(choice.value) |
| 364 | |
| 365 | if (!detail || labelsMatch(choice.label, detail)) { |
| 366 | return choice.label |
| 367 | } |
| 368 | |
| 369 | return `${choice.label} - ${detail}` |
| 370 | } |
| 371 | |
| 372 | function selectionDetail(selection: ModelSelection) { |
| 373 | if (selection.params?.length) { |
no test coverage detected