mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
fix: model parameter selector (#6861)
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user