From 329d9086601b7ae2127be12166ee8c892c289c6e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 16 Jul 2018 15:24:50 +0200 Subject: Do not display private privacy if the video is not private --- client/src/app/videos/+video-edit/video-update.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/videos') diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts index b67874401..72fcc8659 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts @@ -84,7 +84,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { // We cannot set private a video that was not private if (this.video.privacy !== VideoPrivacy.PRIVATE) { - this.videoPrivacies = this.videoPrivacies.filter(p => p.id !== VideoPrivacy.PRIVATE) + this.videoPrivacies = this.videoPrivacies.filter(p => p.id.toString() !== VideoPrivacy.PRIVATE.toString()) } else { // We can schedule video publication only if it it is private this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE } -- cgit v1.2.3