fix: Update routing for workspace schedule (#2113)

* fix: Update routing for workspace schedule

This was broken as part of #2101. It was a silly mistake,
but unfortunate our tests didn't catch it.

This is a rare change so unlikely to occur again, so I won't
make an issue adding tests.

* Update site/src/pages/WorkspaceSchedulePage/WorkspaceSchedulePage.tsx

Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com>

Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com>
This commit is contained in:
Kyle Carberry
2022-06-07 09:28:47 -05:00
committed by GitHub
parent a4e259e14b
commit 7e8692b0fd
11 changed files with 100 additions and 46 deletions

View File

@ -17,7 +17,7 @@ const CreateWorkspacePage: FC = () => {
context: { organizationId, preSelectedTemplateName },
actions: {
onCreateWorkspace: (_, event) => {
navigate("/workspaces/" + event.data.id)
navigate(`/@${event.data.owner_name}/${event.data.name}`)
},
},
})