Fix: Add optional chaining for post.tags
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user