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], );