ctt-puro 0.66.6 → 0.66.8

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.
@@ -4376,7 +4376,7 @@ class MapperService {
4376
4376
  items = hotels
4377
4377
  ?.filter((hotel) => hotel?.id !== 5)
4378
4378
  ?.map((hotel) => ({
4379
- button: Utils.mapButtons(this.siteId(), hotel?.links)[0],
4379
+ button: Utils.mapButtons(hotel?.links?.[0]?.siteId ?? this.siteId(), hotel?.links)[0],
4380
4380
  pretitle: hotel?.city,
4381
4381
  title: (hotel.texts?.name || '') +
4382
4382
  (hotel.texts?.description
@@ -5469,7 +5469,7 @@ class MapperService {
5469
5469
  images: this.getArrayImageResponsive(restaurant?.multimedia?.filter((img) => img?.tags?.some((tag) => tag === 'ListRestaurants' ||
5470
5470
  tag?.name === 'ListRestaurants'))),
5471
5471
  buttons: [
5472
- Utils.mapButtons(1, restaurant?.buttons?.filter((btn) => btn?.linkType === 'self_link' ||
5472
+ Utils.mapButtons(restaurant?.buttons?.[0]?.siteId ?? 1, restaurant?.buttons?.filter((btn) => btn?.linkType === 'self_link' ||
5473
5473
  btn?.linkType === 'external_link' ||
5474
5474
  btn?.linkType === 'internal_hotel_link')),
5475
5475
  ],