Fixes repository level taxonomy filters query going to collection/default/facets instead of facets.

This commit is contained in:
mateuswetah 2020-10-30 11:25:47 -03:00
parent 8a8f9c6f7e
commit 2535cb4942
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@
let route = '';
if (this.isRepositoryLevel)
if (this.isRepositoryLevel || this.filter.collection_id == 'default')
route = `/facets/${this.metadatumId}?getSelected=1&order=asc&parent=0&number=${this.filter.max_options}&` + qs.stringify(query_items);
else {
if ((this.collectionId == 'default' || this.filter.inherited) && this.currentCollectionId)

View File

@ -114,7 +114,7 @@
let endpoint = '';
if (this.isRepositoryLevel)
if (this.isRepositoryLevel || this.filter.collection_id == 'default')
endpoint += '/facets/' + this.metadatumId;
else {
if (this.collectionId == 'default' && this.currentCollection)