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";
|
import { createRoot } from "react-dom/client";
|
||||||
|
|
||||||
const setupAxios = () => {
|
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://cheminova-api-2.onrender.com";
|
||||||
// axios.defaults.baseURL = "https://api.cnapp.co.in";
|
axios.defaults.baseURL = "https://api.cnapp.co.in";
|
||||||
|
|
||||||
axios.defaults.headers = {
|
axios.defaults.headers = {
|
||||||
"Cache-Control": "no-cache,no-store",
|
"Cache-Control": "no-cache,no-store",
|
||||||
|
@ -162,6 +162,7 @@ const ViewOrders = () => {
|
|||||||
} else if (orderStatus === "processing") {
|
} else if (orderStatus === "processing") {
|
||||||
const processingOrderInvoice = order?.orderItem.map((item) => ({
|
const processingOrderInvoice = order?.orderItem.map((item) => ({
|
||||||
...item,
|
...item,
|
||||||
|
productId: item.productId._id,
|
||||||
processquantity: item.quantity,
|
processquantity: item.quantity,
|
||||||
}));
|
}));
|
||||||
console.log("");
|
console.log("");
|
||||||
@ -217,7 +218,7 @@ const ViewOrders = () => {
|
|||||||
description,
|
description,
|
||||||
processquantity,
|
processquantity,
|
||||||
}) => ({
|
}) => ({
|
||||||
productId,
|
productId: productId._id,
|
||||||
SKU,
|
SKU,
|
||||||
name,
|
name,
|
||||||
categoryName,
|
categoryName,
|
||||||
|
Loading…
Reference in New Issue
Block a user