fix: clean agents lint warnings
This commit is contained in:
@@ -218,7 +218,7 @@ export function pruneAgentConfig(
|
||||
removedAllow: number;
|
||||
} {
|
||||
const id = normalizeAgentId(agentId);
|
||||
const agents = { ...(cfg.routing?.agents ?? {}) };
|
||||
const agents = { ...cfg.routing?.agents };
|
||||
delete agents[id];
|
||||
const nextAgents = Object.keys(agents).length > 0 ? agents : undefined;
|
||||
|
||||
|
||||
@@ -618,7 +618,7 @@ export async function setupProviders(
|
||||
accounts: {
|
||||
...next.whatsapp?.accounts,
|
||||
[whatsappAccountId]: {
|
||||
...(next.whatsapp?.accounts?.[whatsappAccountId] ?? {}),
|
||||
...next.whatsapp?.accounts?.[whatsappAccountId],
|
||||
enabled:
|
||||
next.whatsapp?.accounts?.[whatsappAccountId]?.enabled ?? true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user