From e49e02141914706208ba7f440cd49a9c38b2f4d8 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 8 Nov 2025 21:14:36 +0000 Subject: [PATCH] completionId: cgen-0326e5c8a32043598997df410221219d cgen-0326e5c8a32043598997df410221219d --- client/components/admin/AdminMemberManager.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/admin/AdminMemberManager.tsx b/client/components/admin/AdminMemberManager.tsx index 0043b4e7..d9a058f6 100644 --- a/client/components/admin/AdminMemberManager.tsx +++ b/client/components/admin/AdminMemberManager.tsx @@ -132,7 +132,7 @@ const AdminMemberManager = ({ const [profileDraft, setProfileDraft] = useState(null); const selectedProfile = useMemo( - () => profiles.find((profile) => profile.id === selectedId) ?? null, + () => (profiles && Array.isArray(profiles)) ? profiles.find((profile) => profile.id === selectedId) ?? null : null, [profiles, selectedId], );