mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 02:20:16 +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) => {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user