Skip to content

Commit

Permalink
Merge pull request #872 from AI4Bharat/fixuserdownload
Browse files Browse the repository at this point in the history
fix members csv download
  • Loading branch information
aparna-aa authored Jan 16, 2025
2 parents f386bcd + a498f36 commit 41e6ab4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 1 addition & 13 deletions src/config/tableColumns.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,8 @@ export const projectColumns = [

export const usersColumns = [
{
name: "name",
name: "first_name",
label: "Name",
options: {
customBodyRender: (_value, tableMeta) => {
const { tableData: data, rowIndex } = tableMeta;
const selectedRow = data[rowIndex];

return (
<Box>
{selectedRow.first_name} {selectedRow.last_name}
</Box>
);
},
},
},
{
name: "email",
Expand Down
4 changes: 4 additions & 0 deletions src/containers/Organization/UserList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const UserList = ({ data }) => {
const dispatch = useDispatch();
const apiStatus = useSelector((state) => state.apiStatus);

data.forEach(user => {
user.first_name = user.first_name + " " + user.last_name;
});

const handleReinvite = (email) => {
let apiObj;
apiObj = new ResendUserInviteAPI([email]);
Expand Down

0 comments on commit 41e6ab4

Please sign in to comment.