fix: author_slug → author?.slug в TaskModal

This commit is contained in:
Markov 2026-02-25 00:15:08 +01:00
parent c7144328fa
commit 1c832ff99f

View File

@ -251,7 +251,7 @@ export default function TaskModal({ task, projectId: _projectId, projectSlug: _p
<div key={msg.id} className="text-sm">
<div className="flex items-center gap-1 text-xs text-[var(--muted)] mb-0.5">
<span>{AUTHOR_ICON[msg.author_type] || "👤"}</span>
<span className="font-medium">{msg.author_slug}</span>
<span className="font-medium">{msg.author?.slug || msg.author_id}</span>
<span>·</span>
<span>{new Date(msg.created_at).toLocaleString("ru-RU", { hour: "2-digit", minute: "2-digit" })}</span>
</div>