mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Preserve imported persona provider
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user