From 9ab0f0980dc2216ca4a139b0cd073521985d2163 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 28 May 2025 17:54:14 +0800 Subject: [PATCH] fix: start node inputs skiped --- .../_base/components/workflow-panel/last-run/use-last-run.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts index 00d7eb7306..a6da000102 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts @@ -103,6 +103,7 @@ const useLastRun = ({ }: Params) => { const { conversationVars, systemVars, hasSetInspectVar } = useInspectVarsCrud() const blockType = oneStepRunParams.data.type + const isStartNode = blockType === BlockEnum.Start const isIterationNode = blockType === BlockEnum.Iteration const isLoopNode = blockType === BlockEnum.Loop const { handleSyncWorkflowDraft } = useNodesSyncDraft() @@ -202,7 +203,7 @@ const useLastRun = ({ if(!selector || selector.length === 0) return const [nodeId, varName] = selector.slice(0, 2) - if(nodeId === id) { // inner vars like loop vars + if(!isStartNode && nodeId === id) { // inner vars like loop vars values[variable] = true return }