@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.
- package/dist/dms-client-return.cjs.development.js +7 -7
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +7 -7
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-daily-overview/header-filters/SelectionFilter.tsx +14 -9
|
@@ -8954,18 +8954,18 @@ function SelectionFilter() {
|
|
|
8954
8954
|
});
|
|
8955
8955
|
var clientActions = (selectedClientValue == null ? void 0 : selectedClientValue.actions) || [];
|
|
8956
8956
|
var clientLocations = (selectedClientValue == null ? void 0 : selectedClientValue.return_locations) || [];
|
|
8957
|
-
setActionTypeOptions(clientActions == null ? void 0 : clientActions.map(function (action) {
|
|
8957
|
+
setActionTypeOptions(Array.isArray(clientActions) ? clientActions == null ? void 0 : clientActions.map(function (action) {
|
|
8958
8958
|
return {
|
|
8959
8959
|
label: action,
|
|
8960
8960
|
value: action
|
|
8961
8961
|
};
|
|
8962
|
-
}));
|
|
8963
|
-
setLocationOptions(clientLocations == null ? void 0 : clientLocations.map(function (
|
|
8962
|
+
}) : []);
|
|
8963
|
+
setLocationOptions(Array.isArray(clientLocations) ? clientLocations == null ? void 0 : clientLocations.map(function (location) {
|
|
8964
8964
|
return {
|
|
8965
|
-
label:
|
|
8966
|
-
value:
|
|
8965
|
+
label: location,
|
|
8966
|
+
value: location
|
|
8967
8967
|
};
|
|
8968
|
-
}));
|
|
8968
|
+
}) : []);
|
|
8969
8969
|
//client value
|
|
8970
8970
|
if (storedClientId) {
|
|
8971
8971
|
dispatch({
|
|
@@ -8994,7 +8994,7 @@ function SelectionFilter() {
|
|
|
8994
8994
|
});
|
|
8995
8995
|
}
|
|
8996
8996
|
//location value
|
|
8997
|
-
if (selectedLocationValue && selectedLocationValue.length > 0) {
|
|
8997
|
+
if (selectedLocationValue && (selectedLocationValue == null ? void 0 : selectedLocationValue.length) > 0) {
|
|
8998
8998
|
dispatch({
|
|
8999
8999
|
type: 'SET_LOCATION_FILTER',
|
|
9000
9000
|
payload: selectedLocationValue
|