diff --git a/src/components/products/CustomTemplates.jsx b/src/components/products/CustomTemplates.jsx index 678eaf0..1e9b3cc 100644 --- a/src/components/products/CustomTemplates.jsx +++ b/src/components/products/CustomTemplates.jsx @@ -43,7 +43,7 @@ export default function CustomTemplates() { }, staleTime: 0 //0 mins }) - const customTemData = data?.data?.products // CUSTOM TEMPLATE LIST + const customTemData = data?.data?.templates // CUSTOM TEMPLATE LIST const pagination = data?.data?.pagination // console.log('DATA', data?.data) diff --git a/src/components/products/ProductTemplates.jsx b/src/components/products/ProductTemplates.jsx index ec09282..825fe96 100644 --- a/src/components/products/ProductTemplates.jsx +++ b/src/components/products/ProductTemplates.jsx @@ -6,7 +6,7 @@ import BreadcrumbCom from '../breadcrumb/BreadcrumbCom' import TablePaginatedWrapper from '../tableWrapper/TablePaginatedWrapper' import Icons from '../Icons' import { getProductsTemplate } from '../../services/siteServices' -import getDateTimeFromDateString from '../../helpers/getDateTimeFromDateString' +// import getDateTimeFromDateString from '../../helpers/getDateTimeFromDateString' export default function ProductTemplates() { @@ -43,7 +43,7 @@ export default function ProductTemplates() { }, staleTime: 0 //0 mins }) - const productsTemData = data?.data?.products // PRODUCTS TEMPLATE LIST + const productsTemData = data?.data?.templates // PRODUCTS TEMPLATE LIST const pagination = data?.data?.pagination // console.log('DATA', data?.data) @@ -98,7 +98,7 @@ export default function ProductTemplates() {
-
{getDateTimeFromDateString(item?.added)}
+
{item?.product_id}
@@ -109,7 +109,7 @@ export default function ProductTemplates() {
-
{item?.product_id}
+
{item?.provision_name}
diff --git a/src/services/siteServices.js b/src/services/siteServices.js index 7992933..11d4a94 100644 --- a/src/services/siteServices.js +++ b/src/services/siteServices.js @@ -101,13 +101,13 @@ export const getUsers = (reqData) => { // FUNCTION TO GET PRODUCTS TEMPLATE DATA export const getProductsTemplate = (reqData) => { const postData = { ...reqData } - return getAuxEnd(`/products-template`, postData) + return getAuxEnd(`/products-templates`, postData) } // FUNCTION TO GET CUSTOM TEMPLATE DATA export const getCustomTemplate = (reqData) => { const postData = { ...reqData } - return getAuxEnd(`/custom-template`, postData) + return getAuxEnd(`/custom-templates`, postData) } // FUNCTION TO VIEW SELECTED ACCOUNT DATA