Function
selectFirst
(options: FluentUITypes.IDropdownOption[])
Source from the content-addressed store, hash-verified
| 126 | } |
| 127 | |
| 128 | function selectFirst(options: FluentUITypes.IDropdownOption[]) { |
| 129 | for (let i = 0; i < options.length; i++) { |
| 130 | if (options[i].itemType === base.fluentUI.DropdownMenuItemType.Header) continue; |
| 131 | options[i].selected = true; |
| 132 | return; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | export function getColumnMapOptions(props: ColumnMapOptionsProps) { |
| 137 | if (!props.specRole) return null; |
Tested by
no test coverage detected