mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
(calendar) fix .ics generation which sometimes fails due to number > string conversion in keys
introduced in 3996dd10b85bacb09ab2939c3ddb68c8c10377cd
This commit is contained in:
parent
657436060d
commit
7982b31330
@ -24,7 +24,7 @@ const renderEvents = (yearEvents, res, onlyFirstDays = false, calNameExtra = '')
|
|||||||
if (!event) {
|
if (!event) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const ics = event.toIcs(year, translations, fallbackTranslations, clearLinkedText, i, onlyFirstDays, calNameExtra);
|
const ics = event.toIcs(parseInt(year), translations, fallbackTranslations, clearLinkedText, i, onlyFirstDays, calNameExtra);
|
||||||
if (ics !== null) {
|
if (ics !== null) {
|
||||||
events.push(ics);
|
events.push(ics);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user