File tree Expand file tree Collapse file tree
frontend/src/components/tables Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,7 +289,11 @@ export default ({
289289 color : 'inherit' ,
290290 } }
291291 data = { selected . map ( item => {
292- return flattenObject ( item . original )
292+ const returnObject = {
293+ ...flattenObject ( item . original ) ,
294+ registrationId : item . original . _id ,
295+ }
296+ return returnObject
293297 } ) }
294298 filename = "export.csv"
295299 >
Original file line number Diff line number Diff line change @@ -119,12 +119,15 @@ const ProjectsTable = ({ projects }) => {
119119 color : 'inherit' ,
120120 } }
121121 data = { selected . map ( item => {
122- item . original . projectURL =
123- projectURLgenerator (
122+ const returnObject = {
123+ ...flattenObject ( item . original ) ,
124+ projectId : item . original . _id ,
125+ projectURL : projectURLgenerator (
124126 event . slug ,
125127 item . original . _id ,
126- )
127- return flattenObject ( item . original )
128+ ) ,
129+ }
130+ return returnObject
128131 } ) }
129132 filename = "export.csv"
130133 >
You can’t perform that action at this time.
0 commit comments