From 3b79791a6b7832e53311b4c71179ef1b28e0999d Mon Sep 17 00:00:00 2001 From: Jarno <54169345+jarnoml@users.noreply.github.com> Date: Sat, 8 Nov 2025 15:13:59 +0200 Subject: [PATCH] [calendar] Show `repeatingCountTitle` only if `yearDiff` > 0 (#3949) --- CHANGELOG.md | 1 + modules/default/calendar/calendar.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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}`; + } } }