Skip to content

Commit

Permalink
get distinct activities from the piece not the course
Browse files Browse the repository at this point in the history
  • Loading branch information
hcientist committed Jun 28, 2024
1 parent 4a7afd2 commit 87137d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/student/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ export default function ConnectActivity() {
const assignment =
loadedActivities &&
activities &&
activities?.[slug] &&
activities?.[slug].filter(
activities?.[piece].filter(
(assn) =>
assn.piece_slug === piece &&
assn.activity_type_category.startsWith(actCategory)
)?.[0];
const assignmentId = assignment?.id;
Expand Down

0 comments on commit 87137d8

Please sign in to comment.