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.
This commit is contained in:
sebseb7
2025-09-08 08:38:49 +02:00
parent 8ec92ad718
commit 09e015a529

View File

@@ -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';