Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Jul 17, 2024
1 parent c63f4da commit ca63715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/LinearSchedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export default {
return Object.entries(buckets).map(([date, sessions]) => ({
date: sessions[0].start,
// sort by room for stable sort across time buckets
sessions: sessions.sort((a, b) => this.rooms.findIndex(room => room.id === a.room.id) - this.rooms.findIndex(room => room.id === b.room.id))}))
sessions: sessions.sort((a, b) => this.rooms.findIndex(room => room.id === a.room.id) - this.rooms.findIndex(room => room.id === b.room.id))
}))
}
},
watch: {
Expand Down

0 comments on commit ca63715

Please sign in to comment.