fix(types): narrow media source hints helper

This commit is contained in:
Gustavo Madeira Santana
2026-04-13 17:56:12 -04:00
parent 030dab372f
commit 5d3d50cba5

View File

@@ -41,7 +41,7 @@ export function collectActionMediaSourceHints(args: Record<string, unknown>): 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);
}
}