Avoids requesting repository filters on terms items page.

This commit is contained in:
mateuswetah 2020-06-15 17:36:30 -03:00
parent 60803730a7
commit 7f1035adc1
3 changed files with 3 additions and 4 deletions

View File

@ -451,7 +451,7 @@
} }
// On repository level we also fetch collection filters // On repository level we also fetch collection filters
if (this.isRepositoryLevel) { if (!this.taxonomy && this.isRepositoryLevel) {
// Cancels previous Request // Cancels previous Request
if (this.repositoryFiltersSearchCancel != undefined) if (this.repositoryFiltersSearchCancel != undefined)

View File

@ -231,7 +231,7 @@ export const fetchTaxonomyFilters = ({ dispatch, commit }, taxonomyId ) => {
if (taxonomy.collections_ids != undefined && taxonomy.collections_ids.length != undefined) { if (taxonomy.collections_ids != undefined && taxonomy.collections_ids.length != undefined) {
let amountOfCollectionsLoaded = 0; let amountOfCollectionsLoaded = 0;
console.log(taxonomy.collections_ids)
for (let collectionId of taxonomy.collections_ids ) { for (let collectionId of taxonomy.collections_ids ) {
let endpoint = ''; let endpoint = '';

View File

@ -848,8 +848,7 @@
'getMetadata' 'getMetadata'
]), ]),
...mapActions('filter', [ ...mapActions('filter', [
'fetchFilters', 'fetchFilters'
'fetchRepositoryCollectionFilters'
]), ]),
...mapGetters('filter', [ ...mapGetters('filter', [
'getFilters', 'getFilters',