Skip to content

Commit 6b3d1ba

Browse files
committed
fix(calendar-web): fix title expression rendered value
1 parent 6cda349 commit 6b3d1ba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/pluggableWidgets/calendar-web/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3030

3131
- Fixed error when selecting a default view that was not enabled in the toolbar items configuration.
3232

33+
- Fixed title expression not rendering the correct value.
34+
3335
### Breaking changes
3436

3537
- Custom view buttons and their captions are now set inside the Custom top bar views configuration.

packages/pluggableWidgets/calendar-web/src/helpers/CalendarPropsBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class CalendarPropsBuilder {
116116
if (this.props.titleType === "attribute" && this.props.titleAttribute) {
117117
return this.props.titleAttribute.get(item).value ?? "";
118118
} else if (this.props.titleType === "expression" && this.props.titleExpression) {
119-
return String(this.props.titleExpression.get(item) ?? "");
119+
return this.props.titleExpression.get(item)?.value ?? "";
120120
} else {
121121
return "Untitled Event";
122122
}

0 commit comments

Comments
 (0)