mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-14 17:08:31 +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)
This commit is contained in:
@@ -140,7 +140,3 @@ export function formatFileSize(bytes: number, si = true, dp = 1) {
|
||||
|
||||
return nextBytes.toFixed(dp) + ' ' + units[u];
|
||||
}
|
||||
|
||||
export function buildSelectOptions(list: Array<string>) {
|
||||
return list.map((x) => ({ label: x, value: x }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user