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
|
// 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)
|
||||||
|
|
|
@ -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 = '';
|
||||||
|
|
|
@ -848,8 +848,7 @@
|
||||||
'getMetadata'
|
'getMetadata'
|
||||||
]),
|
]),
|
||||||
...mapActions('filter', [
|
...mapActions('filter', [
|
||||||
'fetchFilters',
|
'fetchFilters'
|
||||||
'fetchRepositoryCollectionFilters'
|
|
||||||
]),
|
]),
|
||||||
...mapGetters('filter', [
|
...mapGetters('filter', [
|
||||||
'getFilters',
|
'getFilters',
|
||||||
|
|
Loading…
Reference in New Issue