Fix: Add optional chaining for post.tags

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 23:46:16 +01:00
co-authored by Claude Opus 4.5
parent d6a67fc70f
commit f16b1bcbfd
+1 -1
View File
@@ -1358,7 +1358,7 @@ export default async function BlogPostPage({ params }: Props) {
{/* Tags */}
<div className="flex flex-wrap gap-2 mt-6">
{post.tags.map((tag, index) => (
{post.tags?.map((tag, index) => (
<span
key={index}
className="px-3 py-1 bg-zinc-800/50 text-sm text-zinc-400 rounded-full ring-1 ring-zinc-700/50"