Skip to content

Commit

Permalink
chore: add keys to array of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu-edx committed Oct 26, 2023
1 parent 1ec0c4b commit 8c13e0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/GradeView/FinalGrade.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const FinalGrade = () => {
<CollapsibleFeedback
stepLabel={stepLabel}
stepScore={assessments.staff.stepScore}
key="staff"
>
<AssessmentCriterion {...assessments.staff.assessment} stepLabel={stepLabel} />
</CollapsibleFeedback>
Expand All @@ -29,7 +30,7 @@ const FinalGrade = () => {
finalStepScore = finalStepScore || assessments.peer.stepScore;
const stepLabel = formatMessage(messages.peerStepLabel);
result.push(
<div className='my-2'>
<div className='my-2' key="peer">
<CollapsibleFeedback
stepLabel={stepLabel}
stepScore={assessments.peer.stepScore}
Expand All @@ -50,7 +51,7 @@ const FinalGrade = () => {
if (assessments.peerUnweighted) {
const stepLabel = formatMessage(messages.unweightedPeerStepLabel);
result.push(
<div className='my-2'>
<div className='my-2' key="peerUnweighted">
<CollapsibleFeedback
stepLabel={stepLabel}
stepScore={assessments.peerUnweighted.stepScore}
Expand All @@ -75,6 +76,7 @@ const FinalGrade = () => {
<CollapsibleFeedback
stepLabel={stepLabel}
stepScore={assessments.self.stepScore}
key="self"
>
<AssessmentCriterion {...assessments.self.assessment} stepLabel={stepLabel} />
</CollapsibleFeedback>
Expand Down

0 comments on commit 8c13e0c

Please sign in to comment.