Files
ragflow/web/src/utils/component-util.ts
balibabu 590070e47d Feat: Put buildSelectOptions to common-util.ts #3221 (#7875)
### What problem does this PR solve?

Feat: Put buildSelectOptions to common-util.ts #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-05-27 11:44:54 +08:00

4 lines
112 B
TypeScript

export function buildSelectOptions(list: Array<string>) {
return list.map((x) => ({ label: x, value: x }));
}