Unverified Commit 4e1cd75f authored by zxhlyh's avatar zxhlyh Committed by GitHub

fix: model parameter stop sequence (#1885)

parent a8ff2e95
...@@ -63,8 +63,13 @@ const ParameterItem: FC<ParameterItemProps> = ({ ...@@ -63,8 +63,13 @@ const ParameterItem: FC<ParameterItemProps> = ({
const handleChange = (v: ParameterValue) => { const handleChange = (v: ParameterValue) => {
setLocalValue(v) setLocalValue(v)
if (!isNullOrUndefined(value) && onChange)
onChange(v) if (onChange) {
if (parameterRule.name === 'stop')
onChange(v)
else if (!isNullOrUndefined(value))
onChange(v)
}
} }
const handleNumberInputChange = (e: React.ChangeEvent<HTMLInputElement>) => { const handleNumberInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment