Skip to content

Commit c67a9b3

Browse files
committed
fix: add warning log for duplicate block variable names
1 parent 6db8404 commit c67a9b3

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/api/function/execute

1 file changed

+1
-0
lines changed

apps/sim/app/api/function/execute/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ function injectBlockVariables(
503503
}
504504
// Skip if already defined by another resolution step
505505
if (normalizedName in contextVariables) {
506+
logger.warn(`Block variable '${normalizedName}' already exists in context, skipping injection for blockId: ${blockId}`)
506507
continue
507508
}
508509
const blockOutput = blockData[blockId]

0 commit comments

Comments
 (0)