@hmcts/rpx-xui-common-lib 1.7.18 → 1.7.19-ctsc-role

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.
@@ -3833,6 +3833,7 @@
3833
3833
  JUDICIAL: "Judicial",
3834
3834
  CASEWORKER: "Legal Ops",
3835
3835
  ADMIN: "Admin",
3836
+ CTSC: "CTSC",
3836
3837
  ALL: "All",
3837
3838
  };
3838
3839
  /** @enum {string} */
@@ -4198,8 +4199,7 @@
4198
4199
  bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
4199
4200
  }
4200
4201
  else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
4201
- userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4202
- this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4202
+ this.serviceIds = this.serviceIds && this.serviceIds.length ? this.serviceIds : JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4203
4203
  }
4204
4204
  return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
4205
4205
  };