From c7510d3f54a02facf79d14cae9bf0ba84ed62aae Mon Sep 17 00:00:00 2001 From: twwu Date: Wed, 3 Sep 2025 23:06:12 +0800 Subject: [PATCH] refactor(panel): simplify outputSchema mapping for improved readability --- web/app/components/workflow/nodes/data-source/panel.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/app/components/workflow/nodes/data-source/panel.tsx b/web/app/components/workflow/nodes/data-source/panel.tsx index 21a886535b..cbb506964b 100644 --- a/web/app/components/workflow/nodes/data-source/panel.tsx +++ b/web/app/components/workflow/nodes/data-source/panel.tsx @@ -134,11 +134,10 @@ const Panel: FC> = ({ id, data }) => { /> )) } - { - outputSchema.map((outputItem) => { - const schemaType = getMatchedSchemaType(outputItem.value, schemaTypeDefinitions) + {outputSchema.map((outputItem) => { + const schemaType = getMatchedSchemaType(outputItem.value, schemaTypeDefinitions) - return ( + return (
{outputItem.value?.type === 'object' ? (