Force update live boolean

pull/3383/head
Chocobozzz 2021-01-26 15:41:51 +01:00
parent fd0fdc4696
commit 5d84d717b2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 5 deletions

View 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])