Skip to content

Commit

Permalink
Merge pull request #27 from dayanrr91/fix-issues-in-repo
Browse files Browse the repository at this point in the history
Fixed issue scrolling after clicking filters btn
  • Loading branch information
kaf-lamed-beyt committed Feb 5, 2023
2 parents 13bf026 + 67e8ee6 commit 610cbb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/container/content/index.js
Expand Up @@ -23,7 +23,10 @@ const Content = () => {
const handleYears = (year) => {
setSelectedYear(year)
setActiveYear(year)
router.push({ pathname: '/', query: { year } })
router.push({
pathname: "/",
query: { ...router.query, year: year },
}, undefined, { scroll: false });
}

/**
Expand Down

0 comments on commit 610cbb8

Please sign in to comment.