An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Refactor video mapping in VideoSearchResults component
Yoshiki Miurab6041157c7b5
diff --git a/components/video-search-results.tsx b/components/video-search-results.tsxindex 974105a5..819838ef 100644--- a/components/video-search-results.tsx+++ b/components/video-search-results.tsx@@ -128,7 +128,7 @@ export function VideoSearchResults({ results }: VideoSearchResultsProps) {className="w-full bg-muted max-h-[60vh]"><CarouselContent>- {results.videos.map((video, idx) => {+ {videos.map((video, idx) => {const videoId = video.link.split('v=')[1]return (<CarouselItem key={idx}>