web: sort a copy of the occurrences in DateList
web / ci (push) Failing after 54s

This commit is contained in:
ponas committed 2026-10-14 02:02:55 +02:00
1 parent bbab3a9427
commit b7e7847885
1 file changed
+1 -1
+1 -1
View File
@@ -65,7 +65,7 @@ export const DateList = ({ event }: { event: EventFragment }) => {
let visibleOccurrences = []; let visibleOccurrences = [];
if (oneOff || showAllDates || event.occurrences.length <= 4) { if (oneOff || showAllDates || event.occurrences.length <= 4) {
visibleOccurrences = event.occurrences.sort((a, b) => visibleOccurrences = [...event.occurrences].sort((a, b) =>
compareDates(a.start, b.start) compareDates(a.start, b.start)
); );
} else { } else {