@hmcts/rpx-xui-common-lib 1.7.18 → 1.7.19-create-booking

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.
@@ -4153,8 +4153,7 @@ var SearchLocationComponent = /** @class */ (function () {
4153
4153
  bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
4154
4154
  }
4155
4155
  else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
4156
- userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4157
- this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4156
+ this.serviceIds = this.serviceIds && this.serviceIds.length ? this.serviceIds : JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4158
4157
  }
4159
4158
  return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
4160
4159
  };