Skip to content

Commit

Permalink
scroll to top of details on nav from /list
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Aug 21, 2024
1 parent 276e83a commit 4b5d4a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nextapp/pages/manager/gateways/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ const NamespacesPage: React.FC = () => {
text: 'Your Organization and Business Unit will appear here',
};
}, [namespace]);
useEffect(() => {
window.scrollTo(0, 0);
}, []);
const handleDelete = React.useCallback(async () => {
if (user?.namespace) {
toast({
Expand Down

0 comments on commit 4b5d4a5

Please sign in to comment.