@provoly/dashboard 0.22.8 → 0.22.9

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.
@@ -162,6 +162,7 @@ class PryFilterSettingsComponent extends ToolboxActionComponent {
162
162
  this.currentOperators$ = new BehaviorSubject(this.operators);
163
163
  this.classes = [];
164
164
  this.selectedAttribute$ = new BehaviorSubject(this.filter.attributes.map((attr) => attr.id));
165
+ this.attributes = [];
165
166
  this.FilterSteps = FilterSteps;
166
167
  this.manifest$ = store.select(DashboardSelectors.globalManifest);
167
168
  this.subscriptions.add(this.manifest$.subscribe((manifest) => {
@@ -211,6 +212,7 @@ class PryFilterSettingsComponent extends ToolboxActionComponent {
211
212
  })
212
213
  .filter((attr) => !!attr)
213
214
  ]));
215
+ this.subscriptions.add(this.attributes$.subscribe((attrs) => (this.attributes = attrs)));
214
216
  }
215
217
  getDatasourceClass(dataSource, classes) {
216
218
  let clazz = undefined;
@@ -302,6 +304,7 @@ class PryFilterSettingsComponent extends ToolboxActionComponent {
302
304
  this.currentStep = FilterSteps.CREATION;
303
305
  }
304
306
  submitFilter() {
307
+ this.filter.attributes = this.filter.attributes.map((attr) => typeof attr === 'string' ? this.attributes.find((attrObj) => attrObj.id === attr) : attr);
305
308
  this.store.dispatch(DashboardActions.updateFilters({ filter: this.filter }));
306
309
  this.goBack();
307
310
  }