refactor(app): improve route types, reduce amount of as any (#217)

This commit is contained in:
Illia Panasenko
2026-04-08 12:52:37 +08:00
committed by GitHub
parent ac5e6df6c9
commit 6a4f439541
21 changed files with 61 additions and 61 deletions
+2 -2
View File
@@ -165,7 +165,7 @@ export function useCommandCenter() {
const settingsRoute = useMemo<Href>(() => {
const serverIdFromPath = activeServerId;
return serverIdFromPath ? (buildHostSettingsRoute(serverIdFromPath) as Href) : "/";
return serverIdFromPath ? buildHostSettingsRoute(serverIdFromPath) : "/";
}, [activeServerId]);
const actionItems = useMemo(() => {
@@ -220,7 +220,7 @@ export function useCommandCenter() {
workspaceId: agent.cwd,
target: { kind: "agent", agentId: agent.id },
});
router.navigate(route as any);
router.navigate(route);
},
[setOpen],
);