Update components/productSection/ProductsGrid.tsx

This commit is contained in:
2025-12-25 11:18:30 +00:00
parent 9fdf502041
commit 2f10fb70a9

View File

@@ -20,7 +20,7 @@ export function ProductsGrid() {
useEffect(() => { useEffect(() => {
async function getData() { 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); console.log("all data main page: ", res?.data);
const allData = res?.data || []; const allData = res?.data || [];
setAllProducts(allData.slice(0,3)); setAllProducts(allData.slice(0,3));