From 7b5ac4e11c54404f1f9a54f22ae154a16936a663 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Tue, 10 Feb 2026 09:22:47 +0100
Subject: [PATCH] debug invitation issue on int
---
src/pages/admin/AdminInvitationsPage.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/pages/admin/AdminInvitationsPage.tsx b/src/pages/admin/AdminInvitationsPage.tsx
index febc527..36d6c7d 100644
--- a/src/pages/admin/AdminInvitationsPage.tsx
+++ b/src/pages/admin/AdminInvitationsPage.tsx
@@ -62,7 +62,10 @@ export const AdminInvitationsPage: React.FC = () => {
useEffect(() => {
if (selectedMandateId) {
fetchInvitations(selectedMandateId, { includeExpired: showExpired, includeUsed: showUsed });
- fetchRoles(selectedMandateId).then(setRoles);
+ fetchRoles(selectedMandateId).then(fetchedRoles => {
+ console.warn('[AdminInvitations] fetchRoles result:', { mandateId: selectedMandateId, rolesCount: fetchedRoles.length, roles: fetchedRoles });
+ setRoles(fetchedRoles);
+ });
}
}, [selectedMandateId, showExpired, showUsed, fetchInvitations, fetchRoles]);