diff --git a/apps/ui/src/views/router.tsx b/apps/ui/src/views/router.tsx index 1260d766..10d04652 100644 --- a/apps/ui/src/views/router.tsx +++ b/apps/ui/src/views/router.tsx @@ -88,7 +88,10 @@ export const createRouter = ({ index: true, loader: async () => { const recents = getRecentProjects() - return recents.length && redirect(`projects/${recents[0].id}`) + if (recents.length) { + return redirect(`projects/${recents[0].id}`) + } + return redirect('organization') }, element: , },