Fixes repository level taxonomy filters query going to collection/default/facets instead of facets.
This commit is contained in:
parent
8a8f9c6f7e
commit
2535cb4942
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue