From 8031504212ea05fde50c131314d60163c8123d97 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Dec 2023 10:20:15 +0100 Subject: [PATCH] Fix updating started live error --- .../src/app/+videos/+video-edit/video-update.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 82f45f73d..b13dd0d6f 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts @@ -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)