File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
site/src/pages/CreateWorkspacePage Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -102,21 +102,20 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
102
102
< ErrorSummary
103
103
error = { props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_TEMPLATES_ERROR ] }
104
104
/>
105
- ) : (
106
- null
107
- ) }
105
+ ) : null }
108
106
{ props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_TEMPLATE_SCHEMA_ERROR ] ? (
109
107
< ErrorSummary
110
108
error = { props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_TEMPLATE_SCHEMA_ERROR ] }
111
109
/>
112
- ) : (
113
- null
114
- ) }
110
+ ) : null }
115
111
</ Stack >
116
112
)
117
113
}
118
114
119
- const canSubmit = props . quota && props . quota . user_workspace_limit > 0 && props . quota . user_workspace_count < props . quota . user_workspace_limit
115
+ const canSubmit =
116
+ props . quota &&
117
+ props . quota . user_workspace_limit > 0 &&
118
+ props . quota . user_workspace_count < props . quota . user_workspace_limit
120
119
121
120
return (
122
121
< FullPageForm title = "Create workspace" onCancel = { props . onCancel } >
@@ -182,9 +181,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
182
181
props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_WORKSPACE_QUOTA_ERROR ]
183
182
}
184
183
/>
185
- ) : (
186
- null
187
- ) }
184
+ ) : null }
188
185
189
186
< FormFooter
190
187
onCancel = { props . onCancel }
You can’t perform that action at this time.
0 commit comments