Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion peopleportal/webui/src/components/fabric/EventAttendance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ export const EventAttendance = () => {
);
if (rsvpRes.ok) {
setRsvp((await rsvpRes.json()).rsvp);
if (showRsvps) {
refreshList();
}
} else {
toast.error(`Failed to refresh RSVP: ${rsvpRes.statusText}`);
return;
Expand Down Expand Up @@ -593,7 +596,10 @@ export const EventAttendance = () => {
});
};
React.useEffect(() => {
refreshList();
// load() already fetches page 1; only refetch on page changes for users who can see the list
if (showRsvps) {
refreshList();
}
}, [debouncedPage]);

return (
Expand Down