From 16556e1dcc4fca5143097e18f42c5f75aa54b2a0 Mon Sep 17 00:00:00 2001 From: lanrtop Date: Sat, 4 Jul 2026 10:40:49 +0900 Subject: [PATCH] =?UTF-8?q?fix(manage):=20=E4=BA=A7=E5=93=81=E7=BB=84?= =?UTF-8?q?=E6=A6=82=E8=A7=88=E9=A1=B9=E7=9B=AE=20tag=20=E8=A1=A5=20=C3=97?= =?UTF-8?q?=20=E7=A7=BB=E9=99=A4=E5=85=A5=E5=8F=A3=EF=BC=8C=E4=B8=8E=20det?= =?UTF-8?q?ail=20=E8=A7=86=E5=9B=BE=E8=87=AA=E6=B4=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/manage/ManagePage.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/manage/ManagePage.tsx b/src/components/manage/ManagePage.tsx index 4b943e8..e11de66 100644 --- a/src/components/manage/ManagePage.tsx +++ b/src/components/manage/ManagePage.tsx @@ -463,10 +463,10 @@ function GroupsTab({ spaceId }: { spaceId?: string }) { {groups.map((g) => { - const groupProjectNames = maps + const groupProjectEntries = maps .filter((m) => m.group_id === g.id) - .map((m) => projects.find((p) => p.id === m.project_id)?.name) - .filter((n): n is string => !!n); + .map((m) => { const p = projects.find((x) => x.id === m.project_id); return p ? { id: p.id, name: p.name } : null; }) + .filter((e): e is { id: string; name: string } => e !== null); return ( @@ -475,9 +475,13 @@ function GroupsTab({ spaceId }: { spaceId?: string }) {
- {groupProjectNames.length > 0 ? groupProjectNames.map((name) => ( - + {groupProjectEntries.length > 0 ? groupProjectEntries.map(({ id, name }) => ( + {name} + )) : (