Skip to content

Commit

Permalink
Resolve error with attribute Filters of p-table (#16453)
Browse files Browse the repository at this point in the history
  • Loading branch information
igore13 authored Nov 18, 2024
1 parent a08aff9 commit 4989038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5641,7 +5641,7 @@ export class ColumnFilter implements AfterContentInit {
}

isRowMatchModeSelected(matchMode: string) {
return (<FilterMetadata>this.dt.filters[<string>this.field]).matchMode === matchMode;
return (<FilterMetadata>this.dt.filters[<string>this.field])?.matchMode === matchMode;
}

addConstraint() {
Expand Down Expand Up @@ -5926,7 +5926,7 @@ export class ColumnFilter implements AfterContentInit {
*ngTemplateOutlet="
filterTemplate;
context: {
$implicit: filterConstraint.value,
$implicit: filterConstraint?.value,
filterCallback: filterCallback,
type: type,
field: field,
Expand Down

0 comments on commit 4989038

Please sign in to comment.