소스 검색

fix: allow imageUrl to be undefined in BlogList props

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rriecc 7 달 전
부모
커밋
ae260f4076
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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) {