From 021396be0879bf0e7182c46bd6f38ebfa0c8f6b6 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Mon, 16 Jun 2025 16:56:27 +0800 Subject: [PATCH] fix: null of tool_configurations --- web/app/components/workflow/utils/workflow-init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/utils/workflow-init.ts b/web/app/components/workflow/utils/workflow-init.ts index 8610bbe9d1..dc22d61ca5 100644 --- a/web/app/components/workflow/utils/workflow-init.ts +++ b/web/app/components/workflow/utils/workflow-init.ts @@ -293,7 +293,7 @@ export const initialNodes = (originNodes: Node[], originEdges: Edge[]) => { if (toolConfigurations && Object.keys(toolConfigurations).length > 0) { const newValues = { ...toolConfigurations } Object.keys(toolConfigurations).forEach((key) => { - if (typeof toolConfigurations[key] !== 'object') { + if (typeof toolConfigurations[key] !== 'object' || toolConfigurations[key] === null) { newValues[key] = { type: 'constant', value: toolConfigurations[key],