Skip to content

Commit

Permalink
Merge pull request #1524 from clpetersonucf/issue/1523-paginated-scor…
Browse files Browse the repository at this point in the history
…es-merge-bugfix

Fixes bug in merging scores from multiple query pages
  • Loading branch information
clpetersonucf authored Oct 18, 2023
2 parents d26c8fb + 4029f12 commit e6e55f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/my-widgets-score-semester-individual.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const MyWidgetScoreSemesterIndividual = ({ semester, instId }) => {
let newLogs = state.logs

result.pagination.forEach((record) => {
if (newLogs[record.userId]) newLogs[record.userId].scores.push({...record.scores})
if (newLogs[record.userId]) newLogs[record.userId].scores.push(...record.scores)
else newLogs[record.userId] = { userId: record.userId, name: record.name, searchableName: record.searchableName, scores: record.scores }
newLogs[record.userId].scores.sort(_compareScores)
})
Expand Down

0 comments on commit e6e55f4

Please sign in to comment.