1
0
Fork 0

Fix updating started live error

This commit is contained in:
Chocobozzz 2023-12-08 10:20:15 +01:00
parent ff338f7dda
commit 8031504212
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 1 deletions

View File

@ -221,7 +221,12 @@ export class VideoUpdateComponent extends FormReactive implements OnInit, OnDest
}
// Don't update live attributes if they did not change
const baseVideo = pick(this.liveVideo, Object.keys(liveVideoUpdate) as (keyof LiveVideoUpdate)[])
const baseVideo = {
saveReplay: this.liveVideo.saveReplay,
replaySettings: this.liveVideo.replaySettings,
permanentLive: this.liveVideo.permanentLive,
latencyMode: this.liveVideo.latencyMode
}
const liveChanged = !simpleObjectsDeepEqual(baseVideo, liveVideoUpdate)
if (!liveChanged) return of(undefined)