Skip to content
Snippets Groups Projects

Resolve "Filtering FeedbackHistory not working correctly"

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -41,7 +41,8 @@ function SET_FEEDBACK_HISTORY (state: FeedbackTableState, val: Array<Feedback>)
state.feedbackHist = objectifyArray(feedbackList, 'ofSubmission')
}
function ADD_ASSIGNMENTS_INFO (state: FeedbackTableState, assignments: Array<Assignment>) {
for (const assignment of assignments) {
const doneAssignments = assignments.filter(assignment => assignment.isDone)
for (const assignment of doneAssignments) {
if (!assignment.submission || !assignment.stage) {
throw Error()
}
Loading