mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 07:36:03 +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])
|
||||
|
||||
const handleValueChange = (variable: string, v: any) => {
|
||||
const {
|
||||
inputs,
|
||||
setInputs,
|
||||
} = workflowStore.getState()
|
||||
if (variable === '__image') {
|
||||
workflowStore.setState({
|
||||
files: v,
|
||||
})
|
||||
}
|
||||
else {
|
||||
workflowStore.getState().setInputs({
|
||||
setInputs({
|
||||
...inputs,
|
||||
[variable]: v,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user