diff options
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 7920600fc..c3a833843 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | |||
@@ -98,7 +98,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A | |||
98 | ] | 98 | ] |
99 | 99 | ||
100 | this.liveMaxDurationOptions = [ | 100 | this.liveMaxDurationOptions = [ |
101 | { value: null, label: $localize`No limit` }, | 101 | { value: -1, label: $localize`No limit` }, |
102 | { value: 1000 * 3600, label: $localize`1 hour` }, | 102 | { value: 1000 * 3600, label: $localize`1 hour` }, |
103 | { value: 1000 * 3600 * 3, label: $localize`3 hours` }, | 103 | { value: 1000 * 3600 * 3, label: $localize`3 hours` }, |
104 | { value: 1000 * 3600 * 5, label: $localize`5 hours` }, | 104 | { value: 1000 * 3600 * 5, label: $localize`5 hours` }, |
@@ -359,10 +359,6 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A | |||
359 | async formValidated () { | 359 | async formValidated () { |
360 | const value: CustomConfig = this.form.getRawValue() | 360 | const value: CustomConfig = this.form.getRawValue() |
361 | 361 | ||
362 | // Transform "null" to null | ||
363 | const maxDuration = value.live.maxDuration as any | ||
364 | if (maxDuration === 'null') value.live.maxDuration = null | ||
365 | |||
366 | this.configService.updateCustomConfig(value) | 362 | this.configService.updateCustomConfig(value) |
367 | .subscribe( | 363 | .subscribe( |
368 | res => { | 364 | res => { |