Returns empty array for no ids (#5684)
This commit is contained in:
parent
c753be5bfe
commit
58d1454425
1 changed files with 3 additions and 0 deletions
|
|
@ -989,6 +989,9 @@ export function makeGetChannelsForIds(): (state: GlobalState, ids: string[]) =>
|
|||
getAllChannels,
|
||||
(state: GlobalState, ids: string[]) => ids,
|
||||
(allChannels, ids) => {
|
||||
if (!ids) {
|
||||
return [];
|
||||
}
|
||||
return ids.map((id) => allChannels[id]);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue