Skip to content

Commit

Permalink
chore: revert Math.abs in logic.ts added for unknown reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
rileychh committed May 27, 2024
1 parent 5e004ad commit 7f72694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/session/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function generateScheduleTable (elements: ScheduleElement[]): ScheduleTab
const { hour, minute } = getPartsOfDate(d)
return timePoints.findIndex(([h, m]) => h === hour && m === minute)
})
const span = Math.abs(endIndex - startIndex)
const span = endIndex - startIndex
if (cells.slice(startIndex, endIndex).some(c => c.type !== 'blank')) {
console.warn(`Session: ${e.session} is overlapping with others`)
return
Expand Down

0 comments on commit 7f72694

Please sign in to comment.