소스 검색

refactor(panel): simplify outputSchema mapping for improved readability

tags/2.0.0-beta.1
twwu 1 개월 전
부모
커밋
c7510d3f54
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3
    4
      web/app/components/workflow/nodes/data-source/panel.tsx

+ 3
- 4
web/app/components/workflow/nodes/data-source/panel.tsx 파일 보기

@@ -134,11 +134,10 @@ const Panel: FC<NodePanelProps<DataSourceNodeType>> = ({ id, data }) => {
/>
))
}
{
outputSchema.map((outputItem) => {
const schemaType = getMatchedSchemaType(outputItem.value, schemaTypeDefinitions)
{outputSchema.map((outputItem) => {
const schemaType = getMatchedSchemaType(outputItem.value, schemaTypeDefinitions)

return (
return (
<div key={outputItem.name}>
{outputItem.value?.type === 'object' ? (
<StructureOutputItem

Loading…
취소
저장