mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 02:35:56 +08:00
fix: workflow inputs panel
This commit is contained in:
parent
ab19fccf3d
commit
0cb50dd4a5
@ -56,13 +56,17 @@ const InputsPanel = ({ onRun }: Props) => {
|
|||||||
}, [fileSettings?.image?.enabled, startVariables])
|
}, [fileSettings?.image?.enabled, startVariables])
|
||||||
|
|
||||||
const handleValueChange = (variable: string, v: any) => {
|
const handleValueChange = (variable: string, v: any) => {
|
||||||
|
const {
|
||||||
|
inputs,
|
||||||
|
setInputs,
|
||||||
|
} = workflowStore.getState()
|
||||||
if (variable === '__image') {
|
if (variable === '__image') {
|
||||||
workflowStore.setState({
|
workflowStore.setState({
|
||||||
files: v,
|
files: v,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
workflowStore.getState().setInputs({
|
setInputs({
|
||||||
...inputs,
|
...inputs,
|
||||||
[variable]: v,
|
[variable]: v,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user