diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 2570099..2a7693d 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -37,7 +37,11 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) { // Memoize categories to avoid recalculation on every render const categories = useMemo((): VideoCategory[] => { - if (!videos.length) return []; + console.log("NetflixGrid received videos:", videos.length, videos.slice(0, 2)); // Debug log + if (!videos.length) { + console.log("No videos to display"); // Debug log + return []; + } // Sort by views for top content const sortedByViews = [...videos].sort((a, b) => (b.views || 0) - (a.views || 0));