diff options
| author | Bertrand Yuan <noreply@bertyuan.com> | 2026-03-26 00:15:40 +0800 |
|---|---|---|
| committer | Bertrand Yuan <noreply@bertyuan.com> | 2026-03-26 00:15:40 +0800 |
| commit | cd3c4bc89c169616b38bdb7443bb4eb7571b020c (patch) | |
| tree | 71d0985970984c105582f6e3c370b254f38e9bbe /src/components/json-ld.tsx | |
| parent | 8a6a6712e7554f110b5ef951f270d88fd010e040 (diff) | |
fix defects in pr #11
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; } |
