Skip to content

Commit

Permalink
walk back two removals of slice(), they're still needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Sep 27, 2024
1 parent a798ce6 commit 489eccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class ReportsSubjectNewCourseComponent extends Component {
}

get sortedCourses() {
return this.filteredCourses.sort((a, b) => {
return this.filteredCourses.slice().sort((a, b) => {
if (a.year !== b.year) {
return b.year - a.year;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class ReportsSubjectNewSessionComponent extends Component {
}

get sortedSessions() {
return this.filteredSessions.sort((a, b) => {
return this.filteredSessions.slice().sort((a, b) => {
const courseA = this.store.peekRecord('course', a.belongsTo('course').id());
const courseB = this.store.peekRecord('course', b.belongsTo('course').id());

Expand Down

0 comments on commit 489eccf

Please sign in to comment.