diff --git a/src/app/(dashboard)/grid/page.tsx b/src/app/(dashboard)/grid/page.tsx index 427cd49..2185bec 100644 --- a/src/app/(dashboard)/grid/page.tsx +++ b/src/app/(dashboard)/grid/page.tsx @@ -33,16 +33,15 @@ export default async function GridPage({ searchParams }: GridPageProps) { return ; } - // 3. Load product data — pagination pour ne pas crasher le JS client - console.log(`\n>>> [GridPage] Fetching page 0 for: ${codeFournisseur}, shop: ${magasin}`); - const { rows: initialRows, total } = await getGridData(codeFournisseur, magasin, filters, 0, 200); - console.log(`>>> [GridPage] Received ${initialRows.length}/${total} rows from getGridData`); + // 3. Load real product data for the selected supplier + console.log(`\n>>> [GridPage] Fetching data for: ${codeFournisseur}, shop: ${magasin}`); + const rows = await getGridData(codeFournisseur, magasin, filters); + console.log(`>>> [GridPage] Received ${rows.length} rows from getGridData`); const selectedFournisseur = fournisseurs.find((f: { code: string; nom: string }) => f.code === codeFournisseur); return (