mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: fix deleted workspace banner 404 (#2386)
- When a workspace is deleted the user is nudged to create a new workspace. The page to which they are routed 404s. This PR simply routes them to the /templates page where they can pick a template for their new workspace.
This commit is contained in:
@@ -77,7 +77,7 @@ export const Workspace: FC<WorkspaceProps> = ({
|
||||
workspace={workspace}
|
||||
/>
|
||||
|
||||
<WorkspaceDeletedBanner workspace={workspace} handleClick={() => navigate(`/workspaces/new`)} />
|
||||
<WorkspaceDeletedBanner workspace={workspace} handleClick={() => navigate(`/templates`)} />
|
||||
|
||||
<WorkspaceStats workspace={workspace} />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user