Enhance category data fetching by adding full response handling and improving socket communication in Content component
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user