Skip to content

Commit

Permalink
fix: openui5 support crashes with 1.121-snapshot (#7872)
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelin authored and ilhan007 committed Dec 13, 2023
1 parent abbd5e5 commit a7e9f9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/base/src/features/OpenUI5Support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type Theming = {
type Formatting = {
getCalendarType: () => string,
getLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing,
getCustomIslamicCalendarData?: () => LegacyDateCalendarCustomizing,
}

type CalendarUtils = {
Expand Down Expand Up @@ -137,7 +138,8 @@ class OpenUI5Support {
calendarType: Formatting.getCalendarType(),
formatSettings: {
firstDayOfWeek: CalendarUtils.getWeekConfigurationValues().firstDayOfWeek,
legacyDateCalendarCustomizing: Formatting.getLegacyDateCalendarCustomizing(),
legacyDateCalendarCustomizing: Formatting.getCustomIslamicCalendarData?.()
?? Formatting.getLegacyDateCalendarCustomizing?.(),
},
};
}
Expand Down

0 comments on commit a7e9f9d

Please sign in to comment.