Merge branch 'w2p-101127_browse-by-controlled-vocabulary' into w2p-101127_browse-by-controlled-vocabulary-7.6.0-next

This commit is contained in:
Nona Luypaert
2023-06-02 20:18:32 +02:00
2 changed files with 3 additions and 1 deletions

View File

@@ -47,6 +47,8 @@ describe('BrowseByTaxonomyPageComponent', () => {
detail2 = new VocabularyEntryDetail();
detail1.value = 'HUMANITIES and RELIGION';
detail2.value = 'TECHNOLOGY';
detail1.id = 'id-1';
detail2.id = 'id-2';
});
it('should create', () => {

View File

@@ -98,7 +98,7 @@ export class BrowseByTaxonomyPageComponent implements OnInit, OnDestroy {
* @param detail VocabularyEntryDetail to be removed
*/
onDeselect(detail: VocabularyEntryDetail): void {
this.selectedItems = this.selectedItems.filter((entry: VocabularyEntryDetail) => { return entry !== detail; });
this.selectedItems = this.selectedItems.filter((entry: VocabularyEntryDetail) => { return entry.id !== detail.id; });
this.filterValues = this.filterValues.filter((value: string) => { return value !== `${detail.value},equals`; });
this.updateQueryParams();
}