From dbb7d9013af993f377cd9e2eb094b286a98d3e6d Mon Sep 17 00:00:00 2001 From: zhi Date: Wed, 11 Mar 2026 10:32:01 +0000 Subject: [PATCH] fix: guard dashboard recent_issues when backend payload omits field --- src/pages/DashboardPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/DashboardPage.tsx b/src/pages/DashboardPage.tsx index 4de833f..f05f034 100644 --- a/src/pages/DashboardPage.tsx +++ b/src/pages/DashboardPage.tsx @@ -58,7 +58,7 @@ export default function DashboardPage() { ID标题状态优先级类型 - {stats.recent_issues.map((i) => ( + {(stats.recent_issues || []).map((i) => ( #{i.id} {i.title}