Merge pull request #2651 from plind-dm/fix/clear-extra-args-config

fix(ui): use null instead of undefined when clearing extra args
This commit is contained in:
Dotta 2026-04-06 08:51:43 -05:00 committed by GitHub
commit 39d001c9b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -827,7 +827,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
onCommit={(v) =>
isCreate
? set!({ extraArgs: v })
: mark("adapterConfig", "extraArgs", v ? parseCommaArgs(v) : null)
: mark("adapterConfig", "extraArgs", v?.trim() ? parseCommaArgs(v) : null)
}
immediate
className={inputClass}