Select and confirm uploaded Studio 2 source and hero stills
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user