aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video-caption
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/video-caption')
-rw-r--r--client/src/app/shared/video-caption/video-caption.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/video-caption/video-caption.service.ts b/client/src/app/shared/video-caption/video-caption.service.ts
index d1444902d..e835981dd 100644
--- a/client/src/app/shared/video-caption/video-caption.service.ts
+++ b/client/src/app/shared/video-caption/video-caption.service.ts
@@ -42,8 +42,6 @@ export class VideoCaptionService {
42 } 42 }
43 43
44 updateCaptions (videoId: number | string, videoCaptions: VideoCaptionEdit[]) { 44 updateCaptions (videoId: number | string, videoCaptions: VideoCaptionEdit[]) {
45 if (videoCaptions.length === 0) return of(true)
46
47 const observables: Observable<any>[] = [] 45 const observables: Observable<any>[] = []
48 46
49 for (const videoCaption of videoCaptions) { 47 for (const videoCaption of videoCaptions) {
@@ -58,6 +56,8 @@ export class VideoCaptionService {
58 } 56 }
59 } 57 }
60 58
59 if (observables.length === 0) return of(true)
60
61 return forkJoin(observables) 61 return forkJoin(observables)
62 } 62 }
63} 63}