fix: toSorted outdated chrome bug (#694)
* fix: polyfill * fix: polyfill implemented * chore: lint * chore: replace polyfill with a single function replacement * Delete src/polyfills.ts
This commit is contained in:
@@ -444,7 +444,8 @@ export const calculateCourseCellColumns = (dayCells: CalendarGridCourse[]) => {
|
||||
typeof cell.calendarGridPoint.startIndex === 'number' &&
|
||||
cell.calendarGridPoint.startIndex >= 0
|
||||
)
|
||||
.toSorted((a, b) => a.calendarGridPoint.startIndex - b.calendarGridPoint.startIndex);
|
||||
.slice()
|
||||
.sort((a, b) => a.calendarGridPoint.startIndex - b.calendarGridPoint.startIndex);
|
||||
|
||||
// Initialize metadata
|
||||
for (const cell of cells) {
|
||||
|
||||
Reference in New Issue
Block a user