Tighten FunClip handoff source typing
Some checks failed
CI / main (push) Has been cancelled
CI / release-e2e (push) Has been cancelled

This commit is contained in:
2026-07-07 09:43:39 +08:00
parent 4f1815dd16
commit fbe179ab53

View File

@@ -9786,7 +9786,7 @@ function FunClipEditingPage({
return null; return null;
} }
const videoAsset = { const videoAsset = {
type: asset.type, type: 'video' as const,
name: asset.name || '数字人成片', name: asset.name || '数字人成片',
url: asset.url || '', url: asset.url || '',
thumbnailUrl: asset.thumbnailUrl || '', thumbnailUrl: asset.thumbnailUrl || '',
@@ -10437,7 +10437,10 @@ function FunClipEditingPage({
} }
return false; return false;
} }
if (detail.intent === 'digital-human-polish' && match.id.startsWith('handoff-')) { if (
detail.intent === 'digital-human-polish' &&
match.id.startsWith('handoff-')
) {
setRetainedHandoffSource(match); setRetainedHandoffSource(match);
} }
setSelectedSourceId(match.id); setSelectedSourceId(match.id);