mirror of https://github.com/langgenius/dify.git
refactor(panel): simplify outputSchema mapping for improved readability
This commit is contained in:
parent
e3092837e4
commit
c7510d3f54
|
|
@ -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…
Reference in New Issue