Skip to content

Commit 14b1a16

Browse files
author
Andrea Barbasso
committed
[DSC-1887] fix filtering on a search chart for empty queryparams
1 parent f3c3b8f commit 14b1a16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/shared/search/search-charts/search-chart/search-chart-filter/search-chart-filter.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class SearchChartFilterComponent extends SearchFacetFilterComponent imple
9292
});
9393

9494
if (this.currentUrl) {
95-
const currentQueryParams = this.currentUrl.split('?')[1].split('&');
95+
const currentQueryParams = (this.currentUrl.split('?')[1] || '').split('&');
9696
const pageParam = currentQueryParams.filter((param) => param.includes('page'));
9797
if (pageParam.length > 0) {
9898
const paramName = pageParam[0].split('=')[0];

0 commit comments

Comments
 (0)