partial order and fully order fixed
This commit is contained in:
parent
db18d3fc4c
commit
0fb2629812
@ -15,9 +15,9 @@ import { cibGmail } from "@coreui/icons";
|
||||
import { createRoot } from "react-dom/client";
|
||||
|
||||
const setupAxios = () => {
|
||||
axios.defaults.baseURL = "http://localhost:5000";
|
||||
// axios.defaults.baseURL = "http://localhost:5000";
|
||||
// axios.defaults.baseURL = "https://cheminova-api-2.onrender.com";
|
||||
// axios.defaults.baseURL = "https://api.cnapp.co.in";
|
||||
axios.defaults.baseURL = "https://api.cnapp.co.in";
|
||||
|
||||
axios.defaults.headers = {
|
||||
"Cache-Control": "no-cache,no-store",
|
||||
|
@ -162,6 +162,7 @@ const ViewOrders = () => {
|
||||
} else if (orderStatus === "processing") {
|
||||
const processingOrderInvoice = order?.orderItem.map((item) => ({
|
||||
...item,
|
||||
productId: item.productId._id,
|
||||
processquantity: item.quantity,
|
||||
}));
|
||||
console.log("");
|
||||
@ -217,7 +218,7 @@ const ViewOrders = () => {
|
||||
description,
|
||||
processquantity,
|
||||
}) => ({
|
||||
productId,
|
||||
productId: productId._id,
|
||||
SKU,
|
||||
name,
|
||||
categoryName,
|
||||
|
Loading…
Reference in New Issue
Block a user