aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-24 14:47:32 +0200
committerChocobozzz <me@florianbigard.com>2022-06-24 14:47:32 +0200
commit7c07259ae5c7b636d52b8ec103a19d31c2f5b755 (patch)
tree30e85294a11ce8356dbcc31b0f9df91a18086306 /client/src/app/+videos/+video-edit
parent978489b64c7b329cbfde5ffd7fe806702a3490c7 (diff)
downloadPeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.gz
PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.zst
PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.zip
Fix fetching unlisted video in client
Diffstat (limited to 'client/src/app/+videos/+video-edit')
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts2
-rw-r--r--client/src/app/+videos/+video-edit/video-update.resolver.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts
index 0c78669c1..4c74eda84 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts
@@ -78,7 +78,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, AfterV
78 .pipe( 78 .pipe(
79 switchMap(res => { 79 switchMap(res => {
80 return this.videoCaptionService 80 return this.videoCaptionService
81 .listCaptions(res.video.id) 81 .listCaptions(res.video.uuid)
82 .pipe( 82 .pipe(
83 map(result => ({ video: res.video, videoCaptions: result.data })) 83 map(result => ({ video: res.video, videoCaptions: result.data }))
84 ) 84 )
diff --git a/client/src/app/+videos/+video-edit/video-update.resolver.ts b/client/src/app/+videos/+video-edit/video-update.resolver.ts
index db5017340..524ceae10 100644
--- a/client/src/app/+videos/+video-edit/video-update.resolver.ts
+++ b/client/src/app/+videos/+video-edit/video-update.resolver.ts
@@ -39,7 +39,7 @@ export class VideoUpdateResolver implements Resolve<any> {
39 listUserChannelsForSelect(this.authService), 39 listUserChannelsForSelect(this.authService),
40 40
41 this.videoCaptionService 41 this.videoCaptionService
42 .listCaptions(video.id) 42 .listCaptions(video.uuid)
43 .pipe( 43 .pipe(
44 map(result => result.data) 44 map(result => result.data)
45 ), 45 ),