partial order and fully order fixed

This commit is contained in:
Sibunnayak 2024-09-20 17:25:27 +05:30
parent db18d3fc4c
commit 0fb2629812
2 changed files with 4 additions and 3 deletions

View File

@ -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",

View File

@ -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,