Improve filtering for specific video content on the page

Ensure the filtering logic for "FOLX STADL" videos correctly handles potential undefined `videos` array by adding an `Array.isArray` check in `FolxStadlPage.tsx`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DVZN4Rp
This commit is contained in:
sebastjanartic 2025-08-30 15:55:52 +00:00
parent 31f74b9953
commit 258fcb04f6
2 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

View File

@ -15,11 +15,11 @@ export default function FolxStadlPage() {
}); });
// Filter only FOLX STADL videos // Filter only FOLX STADL videos
const folxStadlVideos = videos.filter(video => const folxStadlVideos = Array.isArray(videos) ? videos.filter(video =>
video.title.includes("FOLX STADL S4") || video.title.includes("FOLX STADL S4") ||
video.title.includes("FOLXSTADL_S04") || video.title.includes("FOLXSTADL_S04") ||
video.title.includes("FOLX STADL S4 -") video.title.includes("FOLX STADL S4 -")
); ) : [];
const handleVideoClick = (video: Video) => { const handleVideoClick = (video: Video) => {
setSelectedVideo(video); setSelectedVideo(video);