diff --git a/client/src/pages/FolxStadlPage.tsx b/client/src/pages/FolxStadlPage.tsx index 41df7cd..f748164 100644 --- a/client/src/pages/FolxStadlPage.tsx +++ b/client/src/pages/FolxStadlPage.tsx @@ -27,10 +27,19 @@ export default function FolxStadlPage() { const videos = data?.videos || []; // Filter all FOLX STADL videos (including all seasons and formats) - const folxStadlVideos = videos.filter(video => + let folxStadlVideos = videos.filter(video => video.title.includes("FOLX STADL") || video.title.includes("FOLXSTADL") ); + // Apply search filter if search query exists + if (searchQuery && searchQuery.length >= 2) { + const searchLower = searchQuery.toLowerCase(); + folxStadlVideos = folxStadlVideos.filter(video => + video.title.toLowerCase().includes(searchLower) || + video.description?.toLowerCase().includes(searchLower) + ); + } + // Pagination logic const totalPages = Math.ceil(folxStadlVideos.length / itemsPerPage); const startIndex = (currentPage - 1) * itemsPerPage;