Skip to content

Commit

Permalink
can deselect exercises from the working resource pool
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOXDi committed Feb 9, 2024
1 parent 30a9341 commit ffee918
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
},
toggleSelected({ content, checked }) {
if (checked) {
this.addToSelectedResources(content);
this.addToWorkingResourcePool([content]);
} else {
this.removeFromWorkingResourcePool(content);
}
Expand All @@ -381,9 +381,7 @@
this.addToWorkingResourcePool(this.contentList);
} else {
this.contentList.forEach(content => {
if (content.kind === ContentNodeKinds.TOPIC) {
this.removeFromWorkingResourcePool(content);
}
this.removeFromWorkingResourcePool(content);
});
}
},
Expand Down

0 comments on commit ffee918

Please sign in to comment.