fix(pm): project tiles link by project.id (op_project_id is a dropped legacy column)

Prefers id like ProjectsPage does; the backend serializer returns id (UUID)
and schema_sync removes the legacy op_project_id column at startup.
This commit is contained in:
MMD
2026-10-07 15:35:56 +03:30
parent a1220db844
commit d38cf38bd9
+1 -1
View File
@@ -83,7 +83,7 @@ function SummaryBox({ tone, label, value }: { tone: "red" | "amber" | "green"; l
/** کاشی مدیریتی یک پروژه — فقط در داشبورد مدیر پروژه */
function ProjectTile({ project }: { project: Project }) {
return (
<Link to={`/projects/${project.op_project_id}`} className="block">
<Link to={`/projects/${project.id || project.op_project_id}`} className="block">
<div className="rounded-xl border border-slate-200 p-3 active:bg-slate-50">
<p className="truncate text-xs font-bold text-slate-800">{project.name}</p>
<div className="mt-1.5 flex flex-wrap gap-1.5">