Fix: Fix shipment fee error #10
|
|
@ -1759,8 +1759,7 @@ const Shipping: React.FC<{
|
|||
loading={ratesLoading}
|
||||
onClick={async () => {
|
||||
try {
|
||||
console.log('test', formRef.current?.getFieldsValue());
|
||||
const { customer_note, notes, items, details, ...data } = formRef.current?.getFieldsValue();
|
||||
const { customer_note, notes, items, details, externalOrderId, ...data } = formRef.current?.getFieldsValue();
|
||||
const originEmail = details.origin.email_addresses;
|
||||
const destinationEmail = details.destination.email_addresses;
|
||||
details.origin.email_addresses =
|
||||
|
|
@ -1777,7 +1776,6 @@ const Shipping: React.FC<{
|
|||
...data
|
||||
},
|
||||
);
|
||||
console.log('res', res.data);
|
||||
if (!res?.success) throw new Error(res?.errMsg);
|
||||
const fee = res.data;
|
||||
setShipmentFee(fee);
|
||||
|
|
|
|||
Loading…
Reference in New Issue