[Trunk | Library]: searchDataProviders.component: [Bug fix] On dataprovider search pages with static refine filters, when selecting filter with no results, filters were lost after clearing filter.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59195 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2020-07-29 14:31:59 +00:00
parent 720396ab2d
commit 94d2e9aeaf
1 changed files with 2 additions and 1 deletions

View File

@ -234,7 +234,8 @@ export class SearchDataProvidersComponent {
if(!refine) {
this.searchPage.buildPageURLParameters(this.filters, [], false);
} else if(this.type != "all" && this.type != "deposit") { // static filters
this.filters = this.searchPage.prepareFiltersToShow(this.filters, this.searchUtils.totalResults);
//this.filters = this.searchPage.prepareFiltersToShow(this.filters, this.searchUtils.totalResults);
this.searchPage.prepareFiltersToShow(this.filters, this.searchUtils.totalResults);
this.searchUtils.refineStatus = this.errorCodes.DONE;
}