Removes duplicate perpage and orderby params.
This commit is contained in:
parent
ccb2e4f0c3
commit
a1baa8b5a9
|
@ -74,7 +74,7 @@ const useTainacanStore = defineStore("tainacan", {
|
|||
try {
|
||||
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)
|
||||
endpoint += '&perpage=' + params.perPage;
|
||||
|
|
Loading…
Reference in New Issue