We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66898a8 commit 3e62767Copy full SHA for 3e62767
packages/client/logic/nav.ts
@@ -63,7 +63,9 @@ export function nextSlide() {
63
64
export async function prevSlide(lastClicks = true) {
65
const next = Math.max(1, currentPage.value - 1)
66
- await go(next, (lastClicks && clicksTotal.value) ? clicksTotal.value : undefined)
+ await go(next)
67
+ if (lastClicks && clicksTotal.value)
68
+ router.replace({ query: { ...route.value.query, clicks: clicksTotal.value } })
69
}
70
71
export function go(page: number, clicks?: number) {
0 commit comments