From f253211bba9d7696dd9d5ec885ce69a7138e5467 Mon Sep 17 00:00:00 2001 From: Ajoymaity Date: Mon, 13 May 2024 18:04:36 +0530 Subject: [PATCH] Issue #ED-4255 fix: Fixed the search page filter --- src/app/category-list/category-list-page.ts | 2 +- src/services/content/content-aggregator-handler.service.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/category-list/category-list-page.ts b/src/app/category-list/category-list-page.ts index 8d500a5b1..485abc9aa 100755 --- a/src/app/category-list/category-list-page.ts +++ b/src/app/category-list/category-list-page.ts @@ -186,7 +186,7 @@ export class CategoryListPage implements OnInit, OnDestroy { if (!this.supportedFacets) { this.formAPIFacets = await this.searchFilterService.fetchFacetFilterFormConfig(this.filterIdentifier, this.frameworkId); this.supportedFacets = this.formAPIFacets.reduce((acc, filterConfig) => { - acc.push(filterConfig.alternativeCode ? filterConfig.alternativeCode : filterConfig.code); + acc.push(filterConfig.code ? filterConfig.code : filterConfig.alternativeCode); return acc; }, []); } diff --git a/src/services/content/content-aggregator-handler.service.ts b/src/services/content/content-aggregator-handler.service.ts index ffb3c101c..bb441cdec 100644 --- a/src/services/content/content-aggregator-handler.service.ts +++ b/src/services/content/content-aggregator-handler.service.ts @@ -78,6 +78,8 @@ export class ContentAggregatorHandler { if (!rootOrgId) { rootOrgId = await this.preferences.getString('defaultRootOrgId').toPromise(); } + frameworkId = frameworkId ? frameworkId : (this.appGlobalService.getCachedFrameworkCategory().id + || this.appGlobalService.getCurrentUser().syllabus[0]); try { this.aggregatorResponse = await this.aggregateContent(request, dataSrc,