Enhance category data fetching by adding full response handling and improving socket communication in Content component

This commit is contained in:
seb
2025-07-03 04:01:10 +02:00
parent f326596f48
commit 1ed06804a0
2 changed files with 29 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ const fetchCategoryProducts = (socket, categoryId) => {
socket.emit(
"getCategoryProducts",
{ categoryId: parseInt(categoryId) },
{ full:true, categoryId: parseInt(categoryId) },
(response) => {
clearTimeout(timeout);
if (response && response.products !== undefined) {