Skip to content

Commit

Permalink
Specify memberIds to download so that the "include terminated members…
Browse files Browse the repository at this point in the history
…" checkbox is honored.
  • Loading branch information
ocielliottc committed Jan 8, 2025
1 parent 244fc81 commit bee62c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web-ui/src/components/admin/users/Users.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import AdminMemberCard from '../../member-directory/AdminMemberCard';
import MemberModal from '../../member-directory/MemberModal';
import {
createMember,
reportAllMembersCsv
reportSelectedMembersCsv
} from '../../../api/member';
import { AppContext } from '../../../context/AppContext';
import { UPDATE_MEMBER_PROFILES, UPDATE_TOAST } from '../../../context/actions';
Expand Down Expand Up @@ -110,7 +110,8 @@ const Users = () => {
});

const downloadMembers = async () => {
let res = await reportAllMembersCsv(csrf);
const res = await reportSelectedMembersCsv(
normalizedMembers.map((m) => m.id), csrf);
if (res?.error) {
dispatch({
type: UPDATE_TOAST,
Expand Down

0 comments on commit bee62c5

Please sign in to comment.