Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): correct navigation to settings page

Steven Enamakel281d5184e6f0
diff --git a/app/src/components/settings/hooks/useSettingsNavigation.ts b/app/src/components/settings/hooks/useSettingsNavigation.ts
index 088b308cd9..1f08ad631e 100644
--- a/app/src/components/settings/hooks/useSettingsNavigation.ts
+++ b/app/src/components/settings/hooks/useSettingsNavigation.ts
@@ -3,7 +3,7 @@
// every registered route resolves without a parallel switch-statement.
import debug from 'debug';
import { useCallback } from 'react';
-import { type To, useLocation, useNavigate } from 'react-router-dom';
+import { useLocation, useNavigate } from 'react-router-dom';
import { entryRoute, findEntryByRoute, SETTINGS_ROUTE_REGISTRY } from '../settingsRouteRegistry';
@@ -148,14 +148,14 @@ export const useSettingsNavigation = (): SettingsNavigationHook => {
const target = route === 'home' ? '/settings' : `/settings/${route}`;
navigate(target);
},
- [navigate, location]
+ [navigate]
);
const navigateToTeamManagement = useCallback(
(teamId: string) => {
navigate(`/settings/team/manage/${teamId}`);
},
- [navigate, location]
+ [navigate]
);
const navigateBack = useCallback(() => {