Removes duplicate perpage and orderby params.

This commit is contained in:
mateuswetah 2022-06-22 14:58:09 -03:00
parent ccb2e4f0c3
commit a1baa8b5a9
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ const useTainacanStore = defineStore("tainacan", {
try { try {
const wpStore = useWpStore(); const wpStore = useWpStore();
let endpoint = `${wpStore.userSiteUrl}/wp-json/tainacan/v2/collection/${collectionId}/items?fetch_only=id,title,thumbnail&perpage=12&orderby=modified`; let endpoint = `${wpStore.userSiteUrl}/wp-json/tainacan/v2/collection/${collectionId}/items?fetch_only=id,title,thumbnail`;
if (params && params.perPage) if (params && params.perPage)
endpoint += '&perpage=' + params.perPage; endpoint += '&perpage=' + params.perPage;