Skip to content

Commit

Permalink
globalFilter - onChange column refresh option values
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Alloza committed May 12, 2024
1 parent 75ace1e commit dd21b22
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,11 @@ export class GlobalFilterComponent implements OnInit {
try {
const query = this.queryBuilderService.normalQuery([targetColumn], queryParams);
query.query.forSelector = true;

const res = await this.dashboardService.executeQuery(query).toPromise();
globalFilter.data = res[1].filter(item => !!item[0]).map(item => ({ label: item[0], value: item[0] }));
const data = res[1].filter(item => !!item[0]).map(item => ({ label: item[0], value: item[0] }));

this.globalFilters.find((gf: any) => gf.id == globalFilter.id).data = data;
} catch (err) {
this.alertService.addError(err);
throw err;
Expand Down

0 comments on commit dd21b22

Please sign in to comment.