From 09e015a529a7f5747c020bc8fdd8b272bbf3c7ab Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Mon, 8 Sep 2025 08:38:49 +0200 Subject: [PATCH] fix(GrowTentKonfigurator): simplify force update logic on product list response Removed conditional check for category 'Zelte' to always force re-render when new product list data arrives, ensuring the UI updates consistently with the latest information. --- src/pages/GrowTentKonfigurator.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/GrowTentKonfigurator.js b/src/pages/GrowTentKonfigurator.js index fe292d4..c886eaf 100644 --- a/src/pages/GrowTentKonfigurator.js +++ b/src/pages/GrowTentKonfigurator.js @@ -160,11 +160,7 @@ class GrowTentKonfigurator extends Component { window.socketManager.on(`productList:${categoryId}`,(response) => { setCachedCategoryData(categoryId, response); - - // Force re-render when data arrives - if (categoryId === 'Zelte') { - this.forceUpdate(); - } + this.forceUpdate(); }); const currentLanguage = this.props.languageContext?.currentLanguage || this.props.i18n?.language || 'de';