Avoids requesting repository filters on terms items page.
This commit is contained in:
parent
60803730a7
commit
7f1035adc1
|
@ -451,7 +451,7 @@
|
|||
}
|
||||
|
||||
// On repository level we also fetch collection filters
|
||||
if (this.isRepositoryLevel) {
|
||||
if (!this.taxonomy && this.isRepositoryLevel) {
|
||||
|
||||
// Cancels previous Request
|
||||
if (this.repositoryFiltersSearchCancel != undefined)
|
||||
|
|
|
@ -231,7 +231,7 @@ export const fetchTaxonomyFilters = ({ dispatch, commit }, taxonomyId ) => {
|
|||
if (taxonomy.collections_ids != undefined && taxonomy.collections_ids.length != undefined) {
|
||||
|
||||
let amountOfCollectionsLoaded = 0;
|
||||
|
||||
console.log(taxonomy.collections_ids)
|
||||
for (let collectionId of taxonomy.collections_ids ) {
|
||||
|
||||
let endpoint = '';
|
||||
|
|
|
@ -848,8 +848,7 @@
|
|||
'getMetadata'
|
||||
]),
|
||||
...mapActions('filter', [
|
||||
'fetchFilters',
|
||||
'fetchRepositoryCollectionFilters'
|
||||
'fetchFilters'
|
||||
]),
|
||||
...mapGetters('filter', [
|
||||
'getFilters',
|
||||
|
|
Loading…
Reference in New Issue