]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Force update live boolean
authorChocobozzz <me@florianbigard.com>
Tue, 26 Jan 2021 14:41:51 +0000 (15:41 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 26 Jan 2021 14:41:51 +0000 (15:41 +0100)
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])