Skip to content

Commit

Permalink
Merge pull request #573 from canopas/fix-author-blog-pagination
Browse files Browse the repository at this point in the history
Fix: authors pagination
  • Loading branch information
cp-sumi-k authored Apr 10, 2024
2 parents dda42b7 + b063ecf commit 4b49b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuxt-frontend/pages/author/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const status = computed(() => store.status);
let postLimit = 10;
await useAsyncData("authors", () =>
store.loadAuthorBlogs(config.SHOW_DRAFT_POSTS, slug.value, 0, postLimit),
store.loadAuthorBlogs(config.SHOW_DRAFT_POSTS, slug.value),
);
if (status.value === config.SUCCESS) {
Expand Down
2 changes: 1 addition & 1 deletion nuxt-frontend/pages/tag/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const resources = computed(() => store.items);
const status = computed(() => store.status);
let postLimit = 2;
await useAsyncData("tags", () => store.loadTagBlogs(slug.value, 0, postLimit));
await useAsyncData("tags", () => store.loadTagBlogs(slug.value));
if (status.value === config.SUCCESS) {
posts.value = resources.value?.slice(0, postLimit);
Expand Down

0 comments on commit 4b49b28

Please sign in to comment.