ngx-wapp-components 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2887,10 +2887,6 @@ class WFilterPanelComponent {
2887
2887
  code: 'Code',
2888
2888
  delete: 'Deleted',
2889
2889
  country: 'Country'
2890
- },
2891
- entities: {
2892
- customerdata: "Customer data",
2893
- products: "Products"
2894
2890
  }
2895
2891
  };
2896
2892
  this.searchClicked = new EventEmitter();
@@ -3068,10 +3064,15 @@ class WFilterPanelComponent {
3068
3064
  for (const entity of entitiesArray) {
3069
3065
  const keys = Object.keys(entity);
3070
3066
  keys.forEach(key => {
3071
- let entitiesTranslationsKeys = Object.keys(this.translationsObject.entities);
3072
- let translation = entitiesTranslationsKeys.find(translationKey => translationKey == key);
3073
- if (translation) {
3074
- entitiesMap[key] = { name: this.translationsObject.entities[key] };
3067
+ if (this.translationsObject.entities) {
3068
+ let entitiesTranslationsKeys = Object.keys(this.translationsObject.entities);
3069
+ let translation = entitiesTranslationsKeys.find(translationKey => translationKey == key);
3070
+ if (translation) {
3071
+ entitiesMap[key] = { name: this.translationsObject.entities[key] };
3072
+ }
3073
+ else {
3074
+ entitiesMap[key] = entity[key];
3075
+ }
3075
3076
  }
3076
3077
  else {
3077
3078
  entitiesMap[key] = entity[key];