X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-edit%2Fshared%2Fvideo-edit-utils.ts;h=214bde68056f3370e8dd89d847545ce60ae39095;hb=54909304287f3c04dcfb39660be8ead57dc95440;hp=3a7dbed36ef4d9d1d85b54b638293466dc962a5d;hpb=c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+videos/+video-edit/shared/video-edit-utils.ts b/client/src/app/+videos/+video-edit/shared/video-edit-utils.ts index 3a7dbed36..214bde680 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit-utils.ts +++ b/client/src/app/+videos/+video-edit/shared/video-edit-utils.ts @@ -8,11 +8,11 @@ function hydrateFormFromVideo (formGroup: FormGroup, video: VideoEdit, thumbnail const objects = [ { - url: 'thumbnailUrl', + url: 'thumbnailUrl' as 'thumbnailUrl', name: 'thumbnailfile' }, { - url: 'previewUrl', + url: 'previewUrl' as 'previewUrl', name: 'previewfile' } ] @@ -24,7 +24,7 @@ function hydrateFormFromVideo (formGroup: FormGroup, video: VideoEdit, thumbnail .then(response => response.blob()) .then(data => { formGroup.patchValue({ - [ obj.name ]: data + [obj.name]: data }) }) }