Skip to content

Commit

Permalink
fix(platform): check validator before open Filtering Settings Dialog (#…
Browse files Browse the repository at this point in the history
…11878)

* fix(platform): check validator before open Filtering Settings Dialog

* fix(platform): lint

---------

Co-authored-by: mikerodonnell89@gmail.com <mikerodonnell89@gmail.com>
  • Loading branch information
oscargong and mikerodonnell89 committed May 6, 2024
1 parent 392315e commit a012cdc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ export class TableP13DialogComponent implements OnDestroy {
const filterBy = state?.filterBy;
const dialogData: FilterDialogData = {
columns: columns.map(({ label, key, dataType, filterable }) => ({ label, key, dataType, filterable })),
collectionFilter: filterBy,
validator: this.filter.validator
collectionFilter: filterBy
};

if (this.filter && this.filter.validator) {
dialogData.validator = this.filter.validator;
}
const dialogRef = this._dialogService.open(
P13FilteringDialogComponent,
{
Expand Down

0 comments on commit a012cdc

Please sign in to comment.