fix: model parameter selector (#6861)

This commit is contained in:
zxhlyh 2024-08-01 11:23:53 +08:00 committed by GitHub
parent feb4576ee7
commit e9d6a43907
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}