refactor: streamline category data fetching in Content component by reducing logging and simplifying cache checks for improved readability

This commit is contained in:
sebseb7
2025-07-23 10:08:23 +02:00
parent 21ed40c4ce
commit a2b7a2509f
3 changed files with 3 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ const SharedCarousel = () => {
rootCategories.length === 0 &&
typeof window !== "undefined"
) {
console.log("SharedCarousel: Fetching categories by ignoring",window.productCache);
window.socketManager.emit("categoryList", { categoryId: 209, language: currentLanguage, requestTranslation: true }, (response) => {
if (response && response.success) {
// Use translated data if available, otherwise fall back to original