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:
Jon Ayers
2022-06-15 13:34:26 -05:00
committed by GitHub
parent 45eb1b4980
commit 961f5110ca
+1 -1
View File
@@ -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} />