Skip to content

Commit 315d9ee

Browse files
committed
Lint
1 parent 62b06d0 commit 315d9ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,9 +2609,7 @@ async function preValidateCredentialInputs(
26092609
model: string
26102610
}> = []
26112611

2612-
const hostedModelsLower = isHosted
2613-
? new Set(getHostedModels().map((m) => m.toLowerCase()))
2614-
: null
2612+
const hostedModelsLower = isHosted ? new Set(getHostedModels().map((m) => m.toLowerCase())) : null
26152613

26162614
operations.forEach((op, opIndex) => {
26172615
if (!op.params?.inputs || !op.params?.type) return
@@ -2668,7 +2666,7 @@ async function preValidateCredentialInputs(
26682666
for (const apiKeyInput of hostedApiKeyInputs) {
26692667
const op = filteredOperations[apiKeyInput.operationIndex]
26702668
if (op.params?.inputs?.apiKey) {
2671-
delete op.params.inputs.apiKey
2669+
op.params.inputs.apiKey = undefined
26722670
logger.debug('Silently filtered apiKey for hosted model', {
26732671
blockId: apiKeyInput.blockId,
26742672
model: apiKeyInput.model,

0 commit comments

Comments
 (0)