ucfopen / Materia

Engage students with easily embedded apps for online courses. Supercharge your course with compelling experiences and game mechanics.
https://ucfopen.github.io/Materia-Docs/
GNU Affero General Public License v3.0
36 stars 32 forks source link

Paginated score objects are not being merged correctly in individual student scores #1523

Closed clpetersonucf closed 10 months ago

clpetersonucf commented 10 months ago

In the MyWidgetScoreSemesterIndividual component, state.logs is an array where every index is the User ID of a student. state.logs[id].scores should be a flat array of all the scores for a given instance for a given student, but when multiple pages of results are returned, the scores array can instead become an object nested within an array, causing problems with the component rendering.