mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 22:00:44 +00:00
fix(types): narrow media source hints helper
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user