Update components/productSection/ProductsGrid.tsx
This commit is contained in:
@@ -20,7 +20,7 @@ export function ProductsGrid() {
|
||||
|
||||
useEffect(() => {
|
||||
async function getData() {
|
||||
await axios.get("https://api.serenmebel.uz/api/products/").then((res) => {
|
||||
await axios.get("https://admin.promtechno.uz/api/products/").then((res) => {
|
||||
console.log("all data main page: ", res?.data);
|
||||
const allData = res?.data || [];
|
||||
setAllProducts(allData.slice(0,3));
|
||||
|
||||
Reference in New Issue
Block a user