Skip to content

Commit

Permalink
fix: reset the facet state when results are found
Browse files Browse the repository at this point in the history
  • Loading branch information
Wassim CHEGHAM committed Apr 15, 2018
1 parent fc23d32 commit 423438d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/search-ui/search/search.component.ts
Expand Up @@ -17,6 +17,7 @@ export class SearchComponent implements OnInit {
set applications(value: Application[]) {
if (!value || value.length === 0) {
// reset the component local state
this.searchCategories = [];
this.isInfiniteScrollRequested = false;
this.lastResultCount = Infinity;
}
Expand Down

0 comments on commit 423438d

Please sign in to comment.