( option: SelectOption | null, items: CommandSelectItem[] )
| 1116 | } |
| 1117 | |
| 1118 | function toCommandSelectItem( |
| 1119 | option: SelectOption | null, |
| 1120 | items: CommandSelectItem[] |
| 1121 | ) { |
| 1122 | if (!option) { |
| 1123 | return undefined |
| 1124 | } |
| 1125 | |
| 1126 | return items.find((item) => item.value === option.value) |
| 1127 | } |
| 1128 | |
| 1129 | function toModelSelectItem(option: SelectOption | null, items: ModelSelectItem[]) { |
| 1130 | if (!option) { |
no outgoing calls
no test coverage detected