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:
parent
31f74b9953
commit
258fcb04f6
BIN
attached_assets/image_1756569328748.png
Normal file
BIN
attached_assets/image_1756569328748.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 111 KiB |
@ -15,11 +15,11 @@ export default function FolxStadlPage() {
|
||||
});
|
||||
|
||||
// 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("FOLXSTADL_S04") ||
|
||||
video.title.includes("FOLX STADL S4 -")
|
||||
);
|
||||
) : [];
|
||||
|
||||
const handleVideoClick = (video: Video) => {
|
||||
setSelectedVideo(video);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user