Skip to content

Commit

Permalink
remove useEffect that wasnt needed
Browse files Browse the repository at this point in the history
  • Loading branch information
markdavella committed May 31, 2024
1 parent 9809d31 commit 840911b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions web/src/pages/channels/ChannelsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ export default function ChannelsPage() {
setChannelMenu(null);
}, [channelsFetching]);

useEffect(() => {
window.scrollTo(0, 0); // Scroll to top on route change
}, [navigate]); // Run on navigate change

const handleChannelNavigation = (
_: React.MouseEvent<HTMLTableRowElement, MouseEvent>,
id: string,
Expand Down

0 comments on commit 840911b

Please sign in to comment.