classic-ui/app/router.scrollBehavior.js
FreezyEx b32527e057 Revert "minor fixes"
This reverts commit 7f8f7c2aa1.
2022-10-13 16:03:54 +02:00

10 lines
208 B
JavaScript

const routerScrollBehavior = (to, from, savedPosition) => {
if (to.name === 'governance-id') {
return { x: 0, y: 0 }
}
return savedPosition || { x: 0, y: 0 }
}
export default routerScrollBehavior