Skip to content

Commit

Permalink
Merge pull request #69 from data-preservation-programs/fix-navlinks
Browse files Browse the repository at this point in the history
fix: nav links
  • Loading branch information
timelytree authored Jan 24, 2024
2 parents 76cdda4 + 9d737e9 commit 95de9e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const scrollToSection = async (el) => {
section: id
}
})
section.scrollIntoView({ behavior: 'smooth' })
const section = document.getElementById(id)
section.scrollIntoView({ behavior: "smooth" })
}
</script>

Expand Down

0 comments on commit 95de9e2

Please sign in to comment.