diff --git a/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts b/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts index d33dfed924..692f7feb78 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts @@ -290,14 +290,13 @@ export class PoPageDynamicSearchComponent } private onRemoveAllDisclaimers() { - const fixedFilters = this.filters.filter(filter => { - return ( + const fixedFilters = this.filters.filter( + filter => filter.fixed === true && filter.hasOwnProperty('initValue') && filter.initValue !== undefined && filter.initValue !== null - ); - }); + ); const disclaimersToKeep = fixedFilters.map(filter => ({ property: filter.property,