mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-03 19:57:37 +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) => {
|
||||
setLocalValue(newValue)
|
||||
|
||||
if (onChange && (parameterRule.name === 'stop' || !isNullOrUndefined(value)))
|
||||
if (onChange && (parameterRule.name === 'stop' || !isNullOrUndefined(value) || parameterRule.required))
|
||||
onChange(newValue)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user