diff options
Diffstat (limited to 'src/components/json-ld.tsx')
| -rw-r--r-- | src/components/json-ld.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/json-ld.tsx b/src/components/json-ld.tsx index 58cb0ba..bbfad33 100644 --- a/src/components/json-ld.tsx +++ b/src/components/json-ld.tsx @@ -4,7 +4,7 @@ import { baseUrl } from '@/lib/constants'; import type { BlogPost } from '@/lib/payload-posts'; import type { BlogPosting, BreadcrumbList, Graph } from 'schema-dts'; -export const PostJsonLd = ({ post }: { post: BlogPost }) => { +export const PostJsonLd = ({ post }: { post: BlogPost | null | undefined }) => { if (!post) { return null; } |
