mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
refactor: Add explicit type for video map
- Improves type safety - Enhances code readability
This commit is contained in:
@@ -122,7 +122,7 @@ export default async function ProjectPage({ params }: ProjectPageProps) {
|
||||
}
|
||||
|
||||
// Transform videos for VideoCard component
|
||||
const videos = project.videos.map((video) => {
|
||||
const videos = project.videos.map((video: typeof project.videos[0]) => {
|
||||
const activeVersion = video.versions[0];
|
||||
return {
|
||||
id: video.id,
|
||||
|
||||
Reference in New Issue
Block a user