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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user