Skip to content

Commit 51d2c49

Browse files
Update src/views/config-v2/LeftSidebar.tsx
Co-authored-by: Adam Yeats <16296989+adamyeats@users.noreply.github.com>
1 parent 8f91b61 commit 51d2c49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/views/config-v2/LeftSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export const LeftSidebar = ({ pdcInjected }: LeftSidebarProps) => {
2626
e.preventDefault();
2727
const target = document.getElementById(header.id);
2828
if (target) {
29-
const y = target.getBoundingClientRect().top + window.scrollY - 60;
30-
window.scrollTo({ top: y, behavior: 'smooth' });
29+
const top = target.getBoundingClientRect().top + window.scrollY - 60;
30+
window.scrollTo({ top, behavior: 'smooth' });
3131
}
3232
}}
3333
>

0 commit comments

Comments
 (0)