mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor(panel): simplify outputSchema mapping for improved readability
This commit is contained in:
@ -134,11 +134,10 @@ const Panel: FC<NodePanelProps<DataSourceNodeType>> = ({ id, data }) => {
|
|||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
{
|
{outputSchema.map((outputItem) => {
|
||||||
outputSchema.map((outputItem) => {
|
const schemaType = getMatchedSchemaType(outputItem.value, schemaTypeDefinitions)
|
||||||
const schemaType = getMatchedSchemaType(outputItem.value, schemaTypeDefinitions)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={outputItem.name}>
|
<div key={outputItem.name}>
|
||||||
{outputItem.value?.type === 'object' ? (
|
{outputItem.value?.type === 'object' ? (
|
||||||
<StructureOutputItem
|
<StructureOutputItem
|
||||||
|
|||||||
Reference in New Issue
Block a user