Adds no pagination when requesting taxonomy metadata to item per term on collection block.

This commit is contained in:
mateuswetah 2021-04-30 15:37:43 -03:00
parent f24ceb87de
commit 2aa82ecb8b
1 changed files with 3 additions and 3 deletions

View File

@ -55,12 +55,12 @@ export const fetchMetadataList = ({ commit }, { collectionId, onlyTaxonomies } )
let endpoint = '';
if (collectionId && collectionId != 'default')
endpoint += '/collection/' + collectionId + '/metadata/';
endpoint += '/collection/' + collectionId + '/metadata/?nopaging=1';
else
endpoint += '/metadata/';
endpoint += '/metadata/?nopaging=1';
if (onlyTaxonomies)
endpoint += '?metaquery[0][key]=metadata_type&metaquery[0][value]=Tainacan\\Metadata_Types\\Taxonomy';
endpoint += '&metaquery[0][key]=metadata_type&metaquery[0][value]=Tainacan\\Metadata_Types\\Taxonomy';
return new Promise((resolve, reject) => {
axios.tainacan.get(endpoint)