We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7d3d0 commit 2cea3c7Copy full SHA for 2cea3c7
site/src/pages/CreateWorkspacePage/CreateWorkspacePage.tsx
@@ -40,7 +40,9 @@ const CreateWorkspacePage: React.FC = () => {
40
templates={createWorkspaceState.context.templates}
41
selectedTemplate={createWorkspaceState.context.selectedTemplate}
42
templateSchema={createWorkspaceState.context.templateSchema}
43
- onCancel={() => navigate("/workspaces")}
+ onCancel={() => {
44
+ navigate(preSelectedTemplateName ? "/templates" : "/workspaces")
45
+ }}
46
onSubmit={(request) => {
47
send({
48
type: "CREATE_WORKSPACE",
0 commit comments