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); } }