mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
Fix issue with channelById type error (object vs map) this was breaking scheduling manual DVR recordings.
This commit is contained in:
parent
34a24b2e44
commit
8a8df11b72
1 changed files with 2 additions and 2 deletions
|
|
@ -283,10 +283,10 @@ export default function TVChannelGuide({ startDate, endDate }) {
|
|||
|
||||
// Local map of channel id -> channel object for quick lookup
|
||||
const channelById = useMemo(() => {
|
||||
const map = {};
|
||||
const map = new Map();
|
||||
for (const ch of guideChannels) {
|
||||
if (ch && ch.id !== undefined && ch.id !== null) {
|
||||
map[ch.id] = ch;
|
||||
map.set(ch.id, ch);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue