Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix request error on publication

Chocobozzzae52f59d69f1
diff --git a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts
index 1f2fbc1069..289f84d4ec 100644
--- a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts
+++ b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts
@@ -534,6 +534,9 @@ export class VideoMainInfoComponent implements OnInit, OnDestroy {
}
loadOwnershipRequest () {
+ // Still uploading the video
+ if (!this.videoEdit.getVideoAttributes().id) return
+
this.changeOwnershipService.listFromVideo(this.videoEdit.getVideoAttributes().id, ChangeOwnershipState.PENDING)
.subscribe(({ data }) => {
if (data.length === 0) return