Skip to content

Commit d6ab7ca

Browse files
committed
fix(webhooks): fix build error from union type indexing in processTriggerFileOutputs
Cast array initializer to Record<string, unknown> to allow string indexing while preserving array runtime semantics for the return value.
1 parent 1713cbf commit d6ab7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/background/webhook-execution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function processTriggerFileOutputs(
6868
return input
6969
}
7070

71-
const processed: Record<string, unknown> | unknown[] = Array.isArray(input) ? [] : {}
71+
const processed = (Array.isArray(input) ? [] : {}) as Record<string, unknown>
7272

7373
for (const [key, value] of Object.entries(input)) {
7474
const currentPath = path ? `${path}.${key}` : key

0 commit comments

Comments
 (0)