Преглед на файлове

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";
 import { Blog } from "@/types/blog";
 
 
 interface BlogListProps {
 interface BlogListProps {
-  blogPosts: (Blog & { imageUrl: string })[];
+  blogPosts: (Blog & { imageUrl: string | undefined })[];
 }
 }
 
 
 export function BlogList({ blogPosts }: BlogListProps) {
 export function BlogList({ blogPosts }: BlogListProps) {