mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-03 09:11:59 +08:00
### 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)
4 lines
112 B
TypeScript
4 lines
112 B
TypeScript
export function buildSelectOptions(list: Array<string>) {
|
|
return list.map((x) => ({ label: x, value: x }));
|
|
}
|