From 315d9ee3f9cdc69598aa47a9c42a4745e3aed0b7 Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Mon, 26 Jan 2026 10:21:01 -0800 Subject: [PATCH] Lint --- apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts b/apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts index 491e9650a..78a8f8d70 100644 --- a/apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts +++ b/apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts @@ -2609,9 +2609,7 @@ async function preValidateCredentialInputs( model: string }> = [] - const hostedModelsLower = isHosted - ? new Set(getHostedModels().map((m) => m.toLowerCase())) - : null + const hostedModelsLower = isHosted ? new Set(getHostedModels().map((m) => m.toLowerCase())) : null operations.forEach((op, opIndex) => { if (!op.params?.inputs || !op.params?.type) return @@ -2668,7 +2666,7 @@ async function preValidateCredentialInputs( for (const apiKeyInput of hostedApiKeyInputs) { const op = filteredOperations[apiKeyInput.operationIndex] if (op.params?.inputs?.apiKey) { - delete op.params.inputs.apiKey + op.params.inputs.apiKey = undefined logger.debug('Silently filtered apiKey for hosted model', { blockId: apiKeyInput.blockId, model: apiKeyInput.model,