瀏覽代碼

refactor(panel): simplify outputSchema mapping for improved readability

tags/2.0.0-beta.1
twwu 2 月之前
父節點
當前提交
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…
取消
儲存