@hivegpt/hiveai-angular 0.0.562 → 0.0.563

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2060,8 +2060,10 @@ class ChatDrawerComponent {
2060
2060
  const userTimezone = this.timezone && String(this.timezone).trim()
2061
2061
  ? String(this.timezone).trim()
2062
2062
  : undefined;
2063
- return sessions.map((s) => {
2063
+ return sessions.map((raw) => {
2064
2064
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2065
+ // get_my_agenda returns wrapper { id, schedule, isSession }; normalize to inner schedule object
2066
+ const s = raw && raw.schedule ? raw.schedule : raw;
2065
2067
  // Support both dateTimeRange (string) and actualDateTimeRange (object with start/end)
2066
2068
  const whenRaw = (_b = (_a = s.dateTimeRange) !== null && _a !== void 0 ? _a : s.actualDateTimeRange) !== null && _b !== void 0 ? _b : '';
2067
2069
  const whenFormatted = this.formatSessionWhen(whenRaw, userTimezone);