Skip to content
Snippets Groups Projects
Commit 21eabb61 authored by ext.sopra.ncastejon's avatar ext.sopra.ncastejon
Browse files

Fix an issue with subfilters and filters for the url parameters.

parent c4c9a397
Branches
Tags
1 merge request!73Development
...@@ -95,8 +95,12 @@ export class ResearchUrlService { ...@@ -95,8 +95,12 @@ export class ResearchUrlService {
if (!aggregation.parentAggregation) { if (!aggregation.parentAggregation) {
// If it's a parent, remove all the children from the parameters // If it's a parent, remove all the children from the parameters
if (aggregation.subAggregations && aggregation.subAggregations.length > 0) { if (aggregation.subAggregations && aggregation.subAggregations.length > 0) {
const aggField = aggregation.subAggregations[0].field.replace(/metadata-fr./, '');
delete this._aggParameters[aggField]; if (aggregation.subAggregations[0].parentAggregation.key !== aggregation.key) {
const aggField = aggregation.subAggregations[0].field.replace(/metadata-fr./, '');
delete this._aggParameters[aggField];
}
} }
} }
// It's a subaggregation that is updated: // It's a subaggregation that is updated:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment