diff --git a/CHANGELOG.md b/CHANGELOG.md index 48c5f559..e8af02ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ planned for 2026-01-01 - [tests] migrate from `jest` to `vitest` (#3940, #3941) - [ci] Add concurrency to automated tests workflow to cancel outdated runs (#3943) - [tests] replace `node-libgpiod` with `serialport` in electron-rebuild workflow (#3945) +- [calendar] hide repeatingCountTitle if the event count is zero (#3949) ### Fixed diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 04dcf7fa..05278c43 100644 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -330,7 +330,9 @@ Module.register("calendar", { const thisYear = eventStartDateMoment.year(), yearDiff = thisYear - event.firstYear; - repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`; + if (yearDiff > 0) { + repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`; + } } }