@bjsdistribution/dms-client-return 0.0.44 → 0.0.45

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.
@@ -8938,7 +8938,7 @@ function SelectionFilter() {
8938
8938
  }
8939
8939
  }, [accountNumber, urlCustomerId]);
8940
8940
  React.useEffect(function () {
8941
- if (urlCustomerId && (clientOptions == null ? void 0 : clientOptions.length) > 0) {
8941
+ if (urlCustomerId) {
8942
8942
  var filteredClient = clientOptions == null ? void 0 : clientOptions.find(function (client) {
8943
8943
  return (client == null ? void 0 : client.value) == urlCustomerId;
8944
8944
  });
@@ -8993,8 +8993,8 @@ function SelectionFilter() {
8993
8993
  }) : []);
8994
8994
  setLocationOptions(Array.isArray(clientLocations) ? clientLocations == null ? void 0 : clientLocations.map(function (location) {
8995
8995
  return {
8996
- label: location,
8997
- value: location
8996
+ label: location == null ? void 0 : location.location_name,
8997
+ value: location == null ? void 0 : location.token
8998
8998
  };
8999
8999
  }) : []);
9000
9000
  //client value
@@ -11606,9 +11606,9 @@ var ReturnTable$1 = function ReturnTable() {
11606
11606
  fontWeight: (key == null ? void 0 : key.RTS) > 0 ? 600 : 'normal',
11607
11607
  cursor: (key == null ? void 0 : key.RTS) > 0 ? 'pointer' : 'default'
11608
11608
  },
11609
- onClick: function onClick() {
11609
+ onClick: (key == null ? void 0 : key.RTS) > 0 ? function () {
11610
11610
  return handleRedirectRTS(key == null ? void 0 : key.customer_id, 'RTS');
11611
- }
11611
+ } : undefined
11612
11612
  }, React__default.createElement(ColumStyle, null, React__default.createElement(GreyBox, {
11613
11613
  style: {
11614
11614
  backgroundColor: (key == null ? void 0 : key.RTS) > 0 ? 'rgba(99, 150, 229, 0.1)' : 'rgba(153, 153, 153, 0.1)'