Skip to content

Commit

Permalink
Merge pull request #809 from rage/iPegii/issue803
Browse files Browse the repository at this point in the history
Fix adding peer reviews from dashboard
  • Loading branch information
nygrenh authored Jul 26, 2021
2 parents c320538 + 82633c8 commit 7855aa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/quizzes-dashboard/store/editor/quiz/quizReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export const quizReducer = createReducer<

.handleAction(createdNewPeerReview, (state, action) => {
return produce(state, draftState => {
draftState[action.payload.quizId].peerReviews.push(action.payload.newId)
draftState[action.payload.quizId].peerReviewCollections.push(
action.payload.newId,
)
})
})

Expand Down
2 changes: 1 addition & 1 deletion packages/quizzes-dashboard/types/NormalizedQuiz.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface NormalizedQuiz {
grantPointsPolicy: string
autoReject: boolean
items: string[]
peerReviews: any[]
peerReviewCollections: any[]
course: string
title: string
body: string
Expand Down

0 comments on commit 7855aa8

Please sign in to comment.