From 5d84d717b246e7f6bed998481c817dc29e5c4948 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Jan 2021 15:41:51 +0100 Subject: [PATCH 1/1] Force update live boolean --- .../src/app/+videos/+video-edit/video-update.component.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 f27ebd20e..654901798 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts @@ -137,13 +137,10 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { if (!this.liveVideo) return of(undefined) const liveVideoUpdate: LiveVideoUpdate = { - saveReplay: this.form.value.saveReplay, - permanentLive: this.form.value.permanentLive + saveReplay: !!this.form.value.saveReplay, + permanentLive: !!this.form.value.permanentLive } - console.log(liveVideoUpdate) - console.log(this.form.value) - // Don't update live attributes if they did not change const liveChanged = Object.keys(liveVideoUpdate) .some(key => this.liveVideo[key] !== liveVideoUpdate[key]) -- 2.41.0