Skip to content

Commit ff3fc72

Browse files
committed
fix MagicMirrorOrg#3267 again this time, dropped from big cal update
1 parent 39ab651 commit ff3fc72

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ _This release is scheduled to be released on 2025-01-01._
5656
- [calendar] - fix showEndsOnlyWithDuration not working, #3598, applies ONLY to full day events
5757
- [calendar] - fix showEnd for Full Day events #3602
5858
- [tests] Suppress "module is not defined" in e2e tests
59+
- [calendar] - fixes #3267 (styles array, really this time!)
5960

6061
## [2.29.0] - 2024-10-01
6162

modules/default/calendar/calendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,9 @@ Module.register("calendar", {
907907
let p = this.getCalendarProperty(url, property, defaultValue);
908908
if (property === "symbol" || property === "recurringSymbol" || property === "fullDaySymbol") {
909909
const className = this.getCalendarProperty(url, "symbolClassName", this.config.defaultSymbolClassName);
910-
p = className + p;
910+
if (p instanceof Array) p.push(className);
911+
else p = className + p;
911912
}
912-
913913
if (!(p instanceof Array)) p = [p];
914914
return p;
915915
},

0 commit comments

Comments
 (0)