diff --git a/src/apps/modern/features/libraries/components/PageTabContent.tsx b/src/apps/modern/features/libraries/components/PageTabContent.tsx index 484b48bb42..430e09f673 100644 --- a/src/apps/modern/features/libraries/components/PageTabContent.tsx +++ b/src/apps/modern/features/libraries/components/PageTabContent.tsx @@ -34,7 +34,6 @@ const PageTabContent: FC = ({ parentId, currentTab }) => { if (currentTab.viewType === LibraryTab.Programs || currentTab.viewType === LibraryTab.Recordings || currentTab.viewType === LibraryTab.Schedule) { return ( = ({ - parentId, sectionType, isUpcomingRecordingsEnabled = false }) => { const { __legacyApiClient__ } = useApi(); - const { isLoading, data: sectionsWithItems, refetch } = useGetProgramsSectionsWithItems(parentId, sectionType); + const { isLoading, data: sectionsWithItems, refetch } = useGetProgramsSectionsWithItems(sectionType); const { isLoading: isUpcomingRecordingsLoading, data: upcomingRecordings diff --git a/src/hooks/useFetchItems.ts b/src/hooks/useFetchItems.ts index 5d6ab0c75f..02f9509da6 100644 --- a/src/hooks/useFetchItems.ts +++ b/src/hooks/useFetchItems.ts @@ -954,14 +954,13 @@ export const useGetSuggestionSectionsWithItems = ( }; export const useGetProgramsSectionsWithItems = ( - parentId: ParentId, programSectionType: SectionType[] ) => { const currentApi = useApi(); const sections = getProgramSections(); return useQuery({ queryKey: ['ProgramSectionWithItems', { programSectionType }], - queryFn: ({ signal }) => getSectionsWithItems(currentApi, parentId, sections, programSectionType, { signal }), + queryFn: ({ signal }) => getSectionsWithItems(currentApi, undefined, sections, programSectionType, { signal }), enabled: !!currentApi.api && !!currentApi.user?.Id }); };