Skip to content

Commit

Permalink
feat: copy custom events (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Jan 31, 2024
1 parent e5c42c5 commit 092d247
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/antalmanac/src/stores/Schedules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ export class Schedules {
this.addCourse(course, to, false);
}
}

for (const customEvent of this.getCurrentCustomEvents()) {
if (to === this.getNumberOfSchedules()) {
this.addCustomEvent(customEvent, [...Array(to).keys()]);
} else {
this.addCustomEvent(customEvent, [to]);
}
}
}

// --- Course related methods ---
Expand Down

0 comments on commit 092d247

Please sign in to comment.