Improve search functionality for video content by removing unnecessary logs
Remove console logs from the FolxStadlPage component to clean up the output and improve performance. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ab9cd02a-d0b2-4288-9ceb-1964d0059648 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/ab9cd02a-d0b2-4288-9ceb-1964d0059648/pSwkS7z
This commit is contained in:
parent
917e6b1a20
commit
fea2730de5
@ -42,15 +42,11 @@ export default function FolxStadlPage() {
|
|||||||
|
|
||||||
const videos = data?.videos || [];
|
const videos = data?.videos || [];
|
||||||
|
|
||||||
console.log('Total videos received:', videos.length);
|
|
||||||
|
|
||||||
// Filter all FOLX STADL videos (including all seasons and formats)
|
// Filter all FOLX STADL videos (including all seasons and formats)
|
||||||
let folxStadlVideos = videos.filter(video =>
|
let folxStadlVideos = videos.filter(video =>
|
||||||
video.title.includes("FOLX STADL") || video.title.includes("FOLXSTADL")
|
video.title.includes("FOLX STADL") || video.title.includes("FOLXSTADL")
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('FOLX STADL videos after filter:', folxStadlVideos.length);
|
|
||||||
|
|
||||||
// Apply search filter if search query exists
|
// Apply search filter if search query exists
|
||||||
if (searchQuery && searchQuery.length >= 2) {
|
if (searchQuery && searchQuery.length >= 2) {
|
||||||
const searchLower = searchQuery.toLowerCase();
|
const searchLower = searchQuery.toLowerCase();
|
||||||
@ -58,7 +54,6 @@ export default function FolxStadlPage() {
|
|||||||
video.title.toLowerCase().includes(searchLower) ||
|
video.title.toLowerCase().includes(searchLower) ||
|
||||||
video.description?.toLowerCase().includes(searchLower)
|
video.description?.toLowerCase().includes(searchLower)
|
||||||
);
|
);
|
||||||
console.log('FOLX STADL videos after search filter:', folxStadlVideos.length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pagination logic
|
// Pagination logic
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user