Skip to content

Commit

Permalink
Merge pull request #7545 from alexMet/fix-adding-exercises-to-quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
jonboiser authored Oct 7, 2020
2 parents 69aa81b + 4a5d6ec commit 4b92725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@
this.removeFromSelectedExercises(this.allExercises);
}
},
toggleSelected({ checked, contentId }) {
toggleSelected({ content, checked }) {
let exercises;
const contentNode = this.contentList.find(item => item.id === contentId);
const contentNode = this.contentList.find(item => item.id === content.id);
const isTopic = contentNode.kind === ContentNodeKinds.TOPIC;
if (checked && isTopic) {
this.showError = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
}
return '';
},
toggleSelected({ checked, content }) {
toggleSelected({ content, checked }) {
if (checked) {
this.addToSelectedResources(content);
} else {
Expand Down

0 comments on commit 4b92725

Please sign in to comment.