mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-20 23:21:06 +02:00
feat(workspace-dialog): route new workspace on initial_setup stage
This commit is contained in:
parent
3c3ec76d77
commit
c0df675740
1 changed files with 4 additions and 2 deletions
|
|
@ -77,9 +77,11 @@ export function CreateWorkspaceDialog({ open, onOpenChange }: CreateWorkspaceDia
|
|||
result.llm_setup
|
||||
);
|
||||
}
|
||||
const needsSetup = result.llm_setup?.status === "needs_setup";
|
||||
// A fresh workspace can never be recovery, so this matches the gate,
|
||||
// which is the authoritative net regardless.
|
||||
const isInitialSetup = result.llm_setup?.stage === "initial_setup";
|
||||
router.push(
|
||||
needsSetup
|
||||
isInitialSetup
|
||||
? `/dashboard/${result.id}/onboard`
|
||||
: `/dashboard/${result.id}/new-chat`
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue