From 954628a3b999408b822d5a75fbf508d9bd63ca57 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Wed, 22 Apr 2026 11:03:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20Member.userId=20=E2=86=92=20uid?= =?UTF-8?q?=20type=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/app/admin/workspaces/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/src/app/admin/workspaces/[id]/page.tsx b/admin/src/app/admin/workspaces/[id]/page.tsx index a805b62..bb99cea 100644 --- a/admin/src/app/admin/workspaces/[id]/page.tsx +++ b/admin/src/app/admin/workspaces/[id]/page.tsx @@ -176,7 +176,7 @@ export default function WorkspaceDetailPage() { setAddMemberError(data.error || "搜索失败,请重试"); return; } - const existingIds = new Set(members.map(m => m.userId)); + const existingIds = new Set(members.map(m => m.uid)); setSearchUsers((data.users || []).filter((u: { uid: string }) => !existingIds.has(u.uid))); setAddMemberError(""); // clear previous errors } catch {