mirror of
https://github.com/langgenius/dify.git
synced 2025-12-01 21:37:03 +00:00
feat: Auto-associate variables in Jinja editor mode (#24561)
This commit is contained in:
parent
23a8409e0c
commit
8af2ae973f
@ -246,7 +246,7 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
|||||||
}, [inputs, setInputs])
|
}, [inputs, setInputs])
|
||||||
|
|
||||||
const handlePromptChange = useCallback((newPrompt: PromptItem[] | PromptItem) => {
|
const handlePromptChange = useCallback((newPrompt: PromptItem[] | PromptItem) => {
|
||||||
const newInputs = produce(inputs, (draft) => {
|
const newInputs = produce(inputRef.current, (draft) => {
|
||||||
draft.prompt_template = newPrompt
|
draft.prompt_template = newPrompt
|
||||||
})
|
})
|
||||||
setInputs(newInputs)
|
setInputs(newInputs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user