diff --git a/frontend/src/components/tables/AttendeeTable/index.js b/frontend/src/components/tables/AttendeeTable/index.js index 3b6720bb7..e4e04baef 100644 --- a/frontend/src/components/tables/AttendeeTable/index.js +++ b/frontend/src/components/tables/AttendeeTable/index.js @@ -289,7 +289,11 @@ export default ({ color: 'inherit', }} data={selected.map(item => { - return flattenObject(item.original) + const returnObject = { + ...flattenObject(item.original), + registrationId: item.original._id, + } + return returnObject })} filename="export.csv" > diff --git a/frontend/src/components/tables/ProjectsTable/index.js b/frontend/src/components/tables/ProjectsTable/index.js index bd913912b..ba5dbdf7d 100644 --- a/frontend/src/components/tables/ProjectsTable/index.js +++ b/frontend/src/components/tables/ProjectsTable/index.js @@ -119,12 +119,15 @@ const ProjectsTable = ({ projects }) => { color: 'inherit', }} data={selected.map(item => { - item.original.projectURL = - projectURLgenerator( + const returnObject = { + ...flattenObject(item.original), + projectId: item.original._id, + projectURL: projectURLgenerator( event.slug, item.original._id, - ) - return flattenObject(item.original) + ), + } + return returnObject })} filename="export.csv" >