diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-14 14:22:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-14 14:22:33 +0100 |
commit | 2f061e065ab43cc0b73595b619639a92952aeeba (patch) | |
tree | bff578e05f41d0272e82f44d03570738947d6539 /client/src/app/shared/shared-forms/select | |
parent | f713f36bdf6f696ab0fe8a309035a09e864a48ca (diff) | |
parent | 2198bb5a1981177b04dd94b2b1b6a90c5d7a5c25 (diff) | |
download | PeerTube-2f061e065ab43cc0b73595b619639a92952aeeba.tar.gz PeerTube-2f061e065ab43cc0b73595b619639a92952aeeba.tar.zst PeerTube-2f061e065ab43cc0b73595b619639a92952aeeba.zip |
Merge branch 'release/4.3.0' into develop
Diffstat (limited to 'client/src/app/shared/shared-forms/select')
-rw-r--r-- | client/src/app/shared/shared-forms/select/select-channel.component.ts | 6 |
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) { |