Select and confirm uploaded Studio 2 source and hero stills

This commit is contained in:
Towsty
2026-09-11 09:28:00 -05:00
parent bf58732690
commit c719e12709
4 changed files with 49 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
export function applyUploadedStill(form, response, target) {
const still=response?.still
if (!still?.id) throw new Error('The upload did not return a saved still. Please try again.')
const next={...form,settings:{...form.settings}}
if (target==='hero') next.identityStillId=still.id
else {next.imageAId=still.id;next.startClipId='';if(next.mode==='extend')next.mode='video';next.settings.aspect='auto'}
return next
}