aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/select
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-forms/select')
-rw-r--r--client/src/app/shared/shared-forms/select/select-channel.component.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-forms/select/select-channel.component.ts b/client/src/app/shared/shared-forms/select/select-channel.component.ts
index 5fcae0050..26d6216ef 100644
--- a/client/src/app/shared/shared-forms/select/select-channel.component.ts
+++ b/client/src/app/shared/shared-forms/select/select-channel.component.ts
@@ -39,8 +39,10 @@ export class SelectChannelComponent implements ControlValueAccessor, OnChanges {
39 39
40 propagateChange = (_: any) => { /* empty */ } 40 propagateChange = (_: any) => { /* empty */ }
41 41
42 writeValue (id: number) { 42 writeValue (id: number | string) {
43 this.selectedId = id 43 this.selectedId = typeof id === 'string'
44 ? parseInt(id, 10)
45 : id
44 } 46 }
45 47
46 registerOnChange (fn: (_: any) => void) { 48 registerOnChange (fn: (_: any) => void) {