mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 07:05:56 +08:00
fix: model parameter selector (#6861)
This commit is contained in:
parent
feb4576ee7
commit
e9d6a43907
@ -56,7 +56,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
|
|||||||
const handleInputChange = (newValue: ParameterValue) => {
|
const handleInputChange = (newValue: ParameterValue) => {
|
||||||
setLocalValue(newValue)
|
setLocalValue(newValue)
|
||||||
|
|
||||||
if (onChange && (parameterRule.name === 'stop' || !isNullOrUndefined(value)))
|
if (onChange && (parameterRule.name === 'stop' || !isNullOrUndefined(value) || parameterRule.required))
|
||||||
onChange(newValue)
|
onChange(newValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user