Explorar o código

fix: allow imageUrl to be undefined in BlogList props

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rriecc hai 7 meses
pai
achega
ae260f4076
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/blog-list.tsx

+ 1 - 1
components/blog-list.tsx

@@ -8,7 +8,7 @@ import Image from "next/image";
 import { Blog } from "@/types/blog";
 
 interface BlogListProps {
-  blogPosts: (Blog & { imageUrl: string })[];
+  blogPosts: (Blog & { imageUrl: string | undefined })[];
 }
 
 export function BlogList({ blogPosts }: BlogListProps) {