aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+videos/+video-edit/video-update.component.ts7
1 files changed, 2 insertions, 5 deletions
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 f27ebd20e..654901798 100644
--- a/client/src/app/+videos/+video-edit/video-update.component.ts
+++ b/client/src/app/+videos/+video-edit/video-update.component.ts
@@ -137,13 +137,10 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
137 if (!this.liveVideo) return of(undefined) 137 if (!this.liveVideo) return of(undefined)
138 138
139 const liveVideoUpdate: LiveVideoUpdate = { 139 const liveVideoUpdate: LiveVideoUpdate = {
140 saveReplay: this.form.value.saveReplay, 140 saveReplay: !!this.form.value.saveReplay,
141 permanentLive: this.form.value.permanentLive 141 permanentLive: !!this.form.value.permanentLive
142 } 142 }
143 143
144 console.log(liveVideoUpdate)
145 console.log(this.form.value)
146
147 // Don't update live attributes if they did not change 144 // Don't update live attributes if they did not change
148 const liveChanged = Object.keys(liveVideoUpdate) 145 const liveChanged = Object.keys(liveVideoUpdate)
149 .some(key => this.liveVideo[key] !== liveVideoUpdate[key]) 146 .some(key => this.liveVideo[key] !== liveVideoUpdate[key])