Skip to content

Commit

Permalink
fix: process selected in each lab accordion to filter by lab_id
Browse files Browse the repository at this point in the history
  • Loading branch information
VeeIsForVanana committed Aug 13, 2024
1 parent 4691e49 commit 90c009e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// eslint-disable-next-line init-declarations
export let selected: TaggedStudentsWithLabs;
$: selected = selected.filter(val => val.lab_id === lab.lab_id);
$: preferred = available.filter(val => val.labs[round - 1] === lab.lab_id);
$: interested = available.filter(val => val.labs.slice(round).includes(lab.lab_id));
Expand Down

0 comments on commit 90c009e

Please sign in to comment.