@trudb/tru-common-lib 0.0.292 → 0.0.294

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.
@@ -198,18 +198,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
198
198
  class TruContextFilters {
199
199
  constructor() {
200
200
  this.filters = [];
201
- this.selectedContextFilterChoices = [];
202
201
  this.valueFor = (tableName) => {
203
- let choice = this.selectedContextFilterChoices.find(f => f.table === tableName);
202
+ let choice = this.filters.find(f => f.selectedChoice.table === tableName)?.selectedChoice;
204
203
  if (!choice)
205
204
  throw new Error('ContextFilterChoice not found. Possible invalid configuration.');
206
205
  return choice.ref;
207
206
  };
208
207
  this.label = () => {
209
208
  let label = '';
210
- this.selectedContextFilterChoices.forEach((filter) => {
211
- label += filter.table + ': ' + filter.label + ' ';
212
- });
209
+ //this.selectedContextFilterChoices.forEach((filter: TruContextFilterChoice) => {
210
+ // label += filter.table + ': ' + filter.label + ' ';
211
+ //});
213
212
  return label;
214
213
  };
215
214
  }