Skip to content

Commit

Permalink
fix: unscheduled session placement
Browse files Browse the repository at this point in the history
  • Loading branch information
theClarkSell committed Jan 10, 2024
1 parent 2f25609 commit 68515a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/_components/activities/List.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@
sorted.reverse();
}
$: if (sorted[0].dayOfYear === 'Invalid Date') {
const firstItem = sorted.shift();
sorted.push(firstItem);
}
$: {
if (searchterm === '') {
activitiesFiltered = activities;
Expand Down

0 comments on commit 68515a3

Please sign in to comment.