@bjsdistribution/dms-client-return 0.1.66-prod → 0.1.67-prod

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.
@@ -2559,9 +2559,10 @@ var ReturnOrderTable = function ReturnOrderTable() {
2559
2559
  }
2560
2560
  // setShouldPerformAction(false);
2561
2561
  }, [fetchedOrderData, returnDataLoad, locationData, state, callForFetch]);
2562
- var _useCustomerData = useCustomerData(),
2563
- customers = _useCustomerData[0];
2564
- var selectedCustomer = customers == null ? void 0 : customers.find(function (customer) {
2562
+ // const [customers] = useCustomerData();
2563
+ var _useFlatCustomerData = useFlatCustomerData(),
2564
+ flatCustomers = _useFlatCustomerData[0];
2565
+ var selectedCustomer = flatCustomers == null ? void 0 : flatCustomers.find(function (customer) {
2565
2566
  var _customer$customer_id;
2566
2567
  var customerId = customer == null || (_customer$customer_id = customer.customer_id) == null ? void 0 : _customer$customer_id.toString();
2567
2568
  return customerId && customerId === urlCustomerId;
@@ -2601,6 +2602,7 @@ var ReturnOrderTable = function ReturnOrderTable() {
2601
2602
  return_location_token: (loc == null ? void 0 : loc.return_location) || null
2602
2603
  };
2603
2604
  });
2605
+ console.log(newPayload, 'newPayloadnewPayload');
2604
2606
  setSelectedReturnOrder(selectedOrders);
2605
2607
  setNewPayload(newPayload);
2606
2608
  } else {
@@ -3226,7 +3228,6 @@ var ModalManager = function ModalManager() {
3226
3228
  payload: emailApiPayload
3227
3229
  });
3228
3230
  }
3229
- console.log("orderIdsString", orderIdsString);
3230
3231
  if (orderIdsString) {
3231
3232
  navigate("/orders/view/return/?order=" + orderIdsString);
3232
3233
  } else {