Skip to content

Commit 3387bf8

Browse files
authored
fix regression #3841 (#3865)
fixes #3841 this is a correction of the rewrite
1 parent 483d3cd commit 3387bf8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Thanks to: @dathbe.
3838
- [clock] Fixed missing icons when no other modules with icons is loaded (#3834)
3939
- [weather] Fixed handling of empty values in weathergov providers handling of precipitationAmount (#3859)
4040
- [calendar] Fix regression handling of limit days (#3840)
41+
- [calendar] Fixed regression of calendarfetcherutils.shouldEventBeExcluded (#3841)
4142

4243
## [2.32.0] - 2025-07-01
4344

modules/default/calendar/calendarfetcherutils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const CalendarFetcherUtils = {
1616
* until: the date until the event should be excluded.
1717
*/
1818
shouldEventBeExcluded (config, title) {
19-
let filter = {
19+
let result = {
2020
excluded: false,
2121
until: null
2222
};
@@ -55,14 +55,14 @@ const CalendarFetcherUtils = {
5555

5656
if (CalendarFetcherUtils.titleFilterApplies(testTitle, filter, useRegex, regexFlags)) {
5757
if (until) {
58-
filter.until = until;
58+
result.until = until;
5959
} else {
60-
filter.excluded = true;
60+
result.excluded = true;
6161
}
6262
break;
6363
}
6464
}
65-
return filter;
65+
return result;
6666
},
6767

6868
/**

0 commit comments

Comments
 (0)