We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a26ec commit b4d1558Copy full SHA for b4d1558
1 file changed
src/app/shared/search/search-charts/search-chart/search-chart-filter/search-chart-filter.component.ts
@@ -83,6 +83,11 @@ export class SearchChartFilterComponent extends SearchFacetFilterComponent imple
83
const queryParam: any = {};
84
links[1].split('&').forEach(res => {
85
const str = res.split('=');
86
+ if (queryParam[str[0]] && queryParam[str[0]].includes(str[1])) {
87
+ // if the value is already selected, then return
88
+ // do not add the same value again
89
+ return;
90
+ }
91
queryParam[str[0]] = queryParam[str[0]] ? [...queryParam[str[0]], str[1]] : [str[1]];
92
});
93
this.router.navigate(this.getSearchLinkParts(), {
0 commit comments