Skip to content
Snippets Groups Projects
Commit 25b54fa2 authored by Mihail Hagiu's avatar Mihail Hagiu
Browse files

feat(ReviewerNumbering): Added dummy maping function in util (WIP)

parent a226e509
No related branches found
No related tags found
3 merge requests!176Sprint 24,!171Sprint 24,!158Hin 1115
......@@ -13,6 +13,7 @@ import {
ContextualBox,
ReviewersTable,
PublonsTable,
indexReviewers,
ReviewerReport,
InviteReviewers,
ReviewerBreakdown,
......@@ -154,7 +155,10 @@ export default compose(
...i,
review: reviewerReports.find(r => r.userId === i.userId),
})),
reports: reviewerReports.filter(r => r.submittedOn),
reports: indexReviewers(
reviewerReports.filter(r => r.submittedOn),
invitations,
),
}),
),
withProps(({ currentUser }) => ({
......
......@@ -10,3 +10,5 @@ export const getReportComments = ({ report, isPublic = false }) =>
.find(c => c.public === isPublic)
.get('content')
.value()
export const indexReviewers = (reports, invitations) => reports
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment