MCPcopy Index your code
hub / github.com/microsoft/SandDance / selectFirst

Function selectFirst

packages/sanddance-explorer/src/controls/columnMap.tsx:128–134  ·  view source on GitHub ↗
(options: FluentUITypes.IDropdownOption[])

Source from the content-addressed store, hash-verified

126}
127
128function 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
136export function getColumnMapOptions(props: ColumnMapOptionsProps) {
137 if (!props.specRole) return null;

Callers 1

ColumnMapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected