mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-31 17:15:32 +08:00
### What problem does this PR solve? Feat: Initialize the data pipeline canvas. #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
8
web/src/pages/data-flow/utils/build-output-list.ts
Normal file
8
web/src/pages/data-flow/utils/build-output-list.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { OutputType } from '../form/components/output';
|
||||
|
||||
export function buildOutputList(outputs: Record<string, Record<string, any>>) {
|
||||
return Object.entries(outputs).reduce<OutputType[]>((pre, [key, val]) => {
|
||||
pre.push({ title: key, type: val.type });
|
||||
return pre;
|
||||
}, []);
|
||||
}
|
||||
Reference in New Issue
Block a user