Preserve imported persona provider

This commit is contained in:
klopez4212
2026-06-22 15:44:48 +01:00
parent bee5314c90
commit 91074011ef
@@ -310,7 +310,9 @@ export function PersonaDialog({
const trimmedRuntime = runtime.trim();
const initialRuntime = initialValues.runtime ?? "";
const preservedProvider =
trimmedRuntime === initialRuntime ? initialValues.provider : undefined;
"id" in initialValues && trimmedRuntime !== initialRuntime
? undefined
: initialValues.provider;
const preservedNamePool =
"namePool" in initialValues ? initialValues.namePool : undefined;
const preservedEnvVars =