Kaynağa Gözat

fix: allow imageUrl to be undefined in BlogList props

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rriecc 7 ay önce
ebeveyn
işleme
ae260f4076
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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) {