Skip to content

Commit ff47289

Browse files
Copilothotlong
andcommitted
fix: add missing objects routes to SystemRoutes for top-level /system/objects navigation
The ObjectManagerPage routes only existed in AppContent (for /apps/:appName/system/objects) but not in the SystemRoutes component (for /system/objects). This meant clicking on objects in the list triggered navigate('/system/objects/:objectName') correctly, but the route wasn't handled, so the detail page never rendered. Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/80a817a2-deca-4fe3-9ca5-17d26519d734 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8cd9d07 commit ff47289

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/console/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ function SystemRoutes() {
506506
<Routes>
507507
<Route path="/" element={<SystemHubPage />} />
508508
<Route path="apps" element={<AppManagementPage />} />
509+
<Route path="objects" element={<ObjectManagerPage />} />
510+
<Route path="objects/:objectName" element={<ObjectManagerPage />} />
509511
<Route path="users" element={<UserManagementPage />} />
510512
<Route path="organizations" element={<OrgManagementPage />} />
511513
<Route path="roles" element={<RoleManagementPage />} />

0 commit comments

Comments
 (0)