| @@ -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) | |||