Skip to content

Commit d28f5d1

Browse files
Fix: Minor fix for window snap on filter changes, only scroll up on path change
1 parent 49718a4 commit d28f5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/frontend/src/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const Navigation = () => {
2828

2929
useEffect(() => {
3030
window.scrollTo(0, 0);
31-
}, [location]);
31+
}, [location.pathname]);
3232

3333
useEffect(() => {
3434
if (darkMode) {

0 commit comments

Comments
 (0)