fix: model parameter selector (#6861)

pull/6869/head
zxhlyh 2 years ago committed by GitHub
parent feb4576ee7
commit e9d6a43907
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save