Fix onChange path for EMA Decay input (#695)

Changes to the EMA Decay input don't get preserved when switching back and forth between Advanced and Simple view. I believe the onChange is not writing it correctly here.
This commit is contained in:
willhsmit
2026-03-28 12:02:32 -07:00
committed by GitHub
parent 4ef5cbe5bc
commit 20929b93df

View File

@@ -587,7 +587,7 @@ export default function SimpleJob({
label="EMA Decay"
className="pt-2"
value={jobConfig.config.process[0].train.ema_config?.ema_decay as number}
onChange={value => setJobConfig(value, 'config.process[0].train.ema_config?.ema_decay')}
onChange={value => setJobConfig(value, 'config.process[0].train.ema_config.ema_decay')}
placeholder="eg. 0.99"
min={0}
/>