@bjsdistribution/dms-client-return 0.0.35 → 0.0.36

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.
@@ -8962,18 +8962,18 @@ function SelectionFilter() {
8962
8962
  });
8963
8963
  var clientActions = (selectedClientValue == null ? void 0 : selectedClientValue.actions) || [];
8964
8964
  var clientLocations = (selectedClientValue == null ? void 0 : selectedClientValue.return_locations) || [];
8965
- setActionTypeOptions(clientActions == null ? void 0 : clientActions.map(function (action) {
8965
+ setActionTypeOptions(Array.isArray(clientActions) ? clientActions == null ? void 0 : clientActions.map(function (action) {
8966
8966
  return {
8967
8967
  label: action,
8968
8968
  value: action
8969
8969
  };
8970
- }));
8971
- setLocationOptions(clientLocations == null ? void 0 : clientLocations.map(function (action) {
8970
+ }) : []);
8971
+ setLocationOptions(Array.isArray(clientLocations) ? clientLocations == null ? void 0 : clientLocations.map(function (location) {
8972
8972
  return {
8973
- label: action,
8974
- value: action
8973
+ label: location,
8974
+ value: location
8975
8975
  };
8976
- }));
8976
+ }) : []);
8977
8977
  //client value
8978
8978
  if (storedClientId) {
8979
8979
  dispatch({
@@ -9002,7 +9002,7 @@ function SelectionFilter() {
9002
9002
  });
9003
9003
  }
9004
9004
  //location value
9005
- if (selectedLocationValue && selectedLocationValue.length > 0) {
9005
+ if (selectedLocationValue && (selectedLocationValue == null ? void 0 : selectedLocationValue.length) > 0) {
9006
9006
  dispatch({
9007
9007
  type: 'SET_LOCATION_FILTER',
9008
9008
  payload: selectedLocationValue