From 8af2ae973f3732eb57cfecc067aaddff28a190e3 Mon Sep 17 00:00:00 2001 From: 17hz <0x149527@gmail.com> Date: Tue, 26 Aug 2025 17:54:16 +0800 Subject: [PATCH] feat: Auto-associate variables in Jinja editor mode (#24561) --- web/app/components/workflow/nodes/llm/use-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/llm/use-config.ts b/web/app/components/workflow/nodes/llm/use-config.ts index 8c2206867..963a60d4b 100644 --- a/web/app/components/workflow/nodes/llm/use-config.ts +++ b/web/app/components/workflow/nodes/llm/use-config.ts @@ -246,7 +246,7 @@ const useConfig = (id: string, payload: LLMNodeType) => { }, [inputs, setInputs]) const handlePromptChange = useCallback((newPrompt: PromptItem[] | PromptItem) => { - const newInputs = produce(inputs, (draft) => { + const newInputs = produce(inputRef.current, (draft) => { draft.prompt_template = newPrompt }) setInputs(newInputs)