From b063ecf09b0c7a5db58927ae4e670ce4c1c879d7 Mon Sep 17 00:00:00 2001 From: Sumita Canopas Date: Wed, 10 Apr 2024 10:14:21 +0530 Subject: [PATCH] Fix: author's blog pagination --- nuxt-frontend/pages/author/[slug].vue | 2 +- nuxt-frontend/pages/tag/[slug].vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nuxt-frontend/pages/author/[slug].vue b/nuxt-frontend/pages/author/[slug].vue index 6e5de1116..71b1f72b5 100644 --- a/nuxt-frontend/pages/author/[slug].vue +++ b/nuxt-frontend/pages/author/[slug].vue @@ -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) { diff --git a/nuxt-frontend/pages/tag/[slug].vue b/nuxt-frontend/pages/tag/[slug].vue index 61f53b764..98c8b8a23 100644 --- a/nuxt-frontend/pages/tag/[slug].vue +++ b/nuxt-frontend/pages/tag/[slug].vue @@ -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);