Skip to content

Commit

Permalink
Remove page query param
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <obulat@gmail.com>
  • Loading branch information
obulat committed Nov 28, 2023
1 parent 31f7c92 commit 1a5ef98
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions frontend/src/components/VLoadMore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { computed, defineComponent, onMounted, ref, watch } from "vue"
import { storeToRefs } from "pinia"
import { useElementVisibility } from "@vueuse/core"
import { useRoute, useRouter } from "@nuxtjs/composition-api"
import { useRoute } from "@nuxtjs/composition-api"
import { useAnalytics } from "~/composables/use-analytics"
import { useMediaStore } from "~/stores/media"
Expand All @@ -35,7 +35,6 @@ export default defineComponent({
setup() {
const loadMoreSectionRef = ref(null)
const route = useRoute()
const router = useRouter()
const i18n = useI18n()
const mediaStore = useMediaStore()
const searchStore = useSearchStore()
Expand Down Expand Up @@ -86,14 +85,6 @@ export default defineComponent({
resultPage: currentPage.value || 1,
})
router.push({
path: route.value.path,
query: {
...route.value.query,
page: `${currentPage.value + 1}`,
},
})
await mediaStore.fetchMedia({
shouldPersistMedia: true,
})
Expand Down

0 comments on commit 1a5ef98

Please sign in to comment.