From eec6e06b1dff050a7a33ded045dd8ff53256c06d Mon Sep 17 00:00:00 2001 From: kappa118 Date: Thu, 27 Feb 2025 17:09:17 -0500 Subject: [PATCH] additional logging for troubleshooting --- frontend/src/pages/Guide.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/pages/Guide.js b/frontend/src/pages/Guide.js index faaecc22..df40e4bc 100644 --- a/frontend/src/pages/Guide.js +++ b/frontend/src/pages/Guide.js @@ -60,12 +60,18 @@ const TVChannelGuide = ({ startDate, endDate }) => { useEffect(() => { const fetchPrograms = async () => { + console.log('Fetching program grid...'); const programs = await API.getGrid(); + console.log(`Received ${programs.length} programs`); const programIds = [...new Set(programs.map((prog) => prog.tvg_id))]; + console.log('program tvg-ids'); console.log(programIds); const filteredChannels = channels.filter((ch) => programIds.includes(ch.tvg_id) ); + console.log( + `found ${filteredChannels.length} channels with matching tvg-ids` + ); console.log(filteredChannels); setGuideChannels(filteredChannels); setActiveChannels(guideChannels.map((channel) => channel.channel_name));