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) => {
|
window.socketManager.on(`productList:${categoryId}`,(response) => {
|
||||||
setCachedCategoryData(categoryId, response);
|
setCachedCategoryData(categoryId, response);
|
||||||
|
this.forceUpdate();
|
||||||
// Force re-render when data arrives
|
|
||||||
if (categoryId === 'Zelte') {
|
|
||||||
this.forceUpdate();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentLanguage = this.props.languageContext?.currentLanguage || this.props.i18n?.language || 'de';
|
const currentLanguage = this.props.languageContext?.currentLanguage || this.props.i18n?.language || 'de';
|
||||||
|
|||||||
Reference in New Issue
Block a user