From 5d3d50cba548d284c50b1685339bba9f82d27c12 Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Mon, 13 Apr 2026 17:56:12 -0400 Subject: [PATCH] fix(types): narrow media source hints helper --- src/infra/outbound/message-action-params.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infra/outbound/message-action-params.ts b/src/infra/outbound/message-action-params.ts index 08022a01cdc..257b348fd2c 100644 --- a/src/infra/outbound/message-action-params.ts +++ b/src/infra/outbound/message-action-params.ts @@ -41,7 +41,7 @@ export function collectActionMediaSourceHints(args: Record): st const sources: string[] = []; for (const key of ACTION_MEDIA_SOURCE_PARAM_KEYS) { const source = typeof args[key] === "string" ? args[key] : undefined; - if (normalizeOptionalString(source)) { + if (source && normalizeOptionalString(source)) { sources.push(source); } }