@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
package/package.json
CHANGED
|
@@ -152,18 +152,23 @@ function SelectionFilter() {
|
|
|
152
152
|
const clientLocations = selectedClientValue?.return_locations || [];
|
|
153
153
|
|
|
154
154
|
setActionTypeOptions(
|
|
155
|
-
clientActions
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
Array.isArray(clientActions)
|
|
156
|
+
? clientActions?.map(action => ({
|
|
157
|
+
label: action,
|
|
158
|
+
value: action,
|
|
159
|
+
}))
|
|
160
|
+
: []
|
|
159
161
|
);
|
|
160
162
|
|
|
161
163
|
setLocationOptions(
|
|
162
|
-
clientLocations
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
Array.isArray(clientLocations)
|
|
165
|
+
? clientLocations?.map(location => ({
|
|
166
|
+
label: location,
|
|
167
|
+
value: location,
|
|
168
|
+
}))
|
|
169
|
+
: []
|
|
166
170
|
);
|
|
171
|
+
|
|
167
172
|
//client value
|
|
168
173
|
if (storedClientId) {
|
|
169
174
|
dispatch({
|
|
@@ -192,7 +197,7 @@ function SelectionFilter() {
|
|
|
192
197
|
});
|
|
193
198
|
}
|
|
194
199
|
//location value
|
|
195
|
-
if (selectedLocationValue && selectedLocationValue
|
|
200
|
+
if (selectedLocationValue && selectedLocationValue?.length > 0) {
|
|
196
201
|
dispatch({
|
|
197
202
|
type: 'SET_LOCATION_FILTER',
|
|
198
203
|
payload: selectedLocationValue,
|