Skip to content

Commit 591a64d

Browse files
authored
Merge pull request #780 from wickathou/hotfix/project-participant-export-ids
Hotfix - Added projectId and registrationId properties to exports as organizer
2 parents 34c581a + 7e0373c commit 591a64d

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

frontend/src/components/tables/AttendeeTable/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
>

frontend/src/components/tables/ProjectsTable/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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
>

0 commit comments

Comments
 (0)