]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-edit/video-update.component.ts
Force update live boolean
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-update.component.ts
index f27ebd20e5da238941faf21a831ac098b9041abf..654901798b8050641af6c4923d29eaee092ad20b 100644 (file)
@@ -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])