8000 fix: push create workspace UX to templates page by f0ssel · Pull Request #2142 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: push create workspace UX to templates page #2142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fit loop
  • Loading branch information
f0ssel committed Jun 9, 2022
commit e74f27d622c34e3b1e99c3487fc0e5efbe80674e
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,8 @@ export const createWorkspaceMachine = createMachine(
}),
assignSelectedTemplate: assign({
selectedTemplate: (ctx, event) => {
for (const template of event.data) {
if (template.name === ctx.templateName) {
return template
}
}
const templates = event.data.filter((template) => template.name === ctx.templateName)
return templates.length ? templates[0] : undefined
},
}),
assignTemplateSchema: assign({
Expand Down
0