mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: filter key pass the array type
This commit is contained in:
parent
f841d8af7c
commit
9b95eef090
|
@ -48,12 +48,12 @@ const FilterCondition: FC<Props> = ({
|
|||
return []
|
||||
}
|
||||
return []
|
||||
}, [condition.comparison_operator, condition.key, isSelect, t, isArrayValue])
|
||||
}, [condition.comparison_operator, condition.key, isSelect, t])
|
||||
const handleChange = useCallback((key: string) => {
|
||||
return (value: any) => {
|
||||
onChange({
|
||||
...condition,
|
||||
[key]: isArrayValue ? [value] : value,
|
||||
[key]: (isArrayValue && key === 'value') ? [value] : value,
|
||||
})
|
||||
}
|
||||
}, [condition, onChange, isArrayValue])
|
||||
|
|
Loading…
Reference in New Issue
Block a user