Skip to content

Commit 8bc8543

Browse files
authored
fix: remove unused var underscore
1 parent 507be8c commit 8bc8543

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/router.options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { RouterConfig } from 'nuxt/schema'
22

33
export default {
4-
scrollBehavior(to, _from, savedPosition) {
4+
scrollBehavior(to, from, savedPosition) {
55
// If the browser has a saved position (e.g. back/forward navigation), restore it
66

77
if (savedPosition) {
@@ -11,8 +11,8 @@ export default {
1111
// Preserve the current viewport for query-only updates on pages that opt in,
1212
// such as compare where controls sync state to the URL in-place.
1313
if (
14-
to.path === _from.path &&
15-
to.hash === _from.hash &&
14+
to.path === from.path &&
15+
to.hash === from.hash &&
1616
to.meta.preserveScrollOnQuery === true
1717
) {
1818
return false

0 commit comments

Comments
 (0)