File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
site/src/pages/CreateWorkspacePage Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -99,21 +99,20 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
99
99
< ErrorSummary
100
100
error = { props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_TEMPLATES_ERROR ] }
101
101
/>
102
- ) : (
103
- null
104
- ) }
102
+ ) : null }
105
103
{ props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_TEMPLATE_SCHEMA_ERROR ] ? (
106
104
< ErrorSummary
107
105
error = { props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_TEMPLATE_SCHEMA_ERROR ] }
108
106
/>
109
- ) : (
110
- null
111
- ) }
107
+ ) : null }
112
108
</ Stack >
113
109
)
114
110
}
115
111
116
- const canSubmit = props . quota && props . quota . user_workspace_limit > 0 && props . quota . user_workspace_count < props . quota . user_workspace_limit
112
+ const canSubmit =
113
+ props . quota &&
114
+ props . quota . user_workspace_limit > 0 &&
115
+ props . quota . user_workspace_count < props . quota . user_workspace_limit
117
116
118
117
return (
119
118
< FullPageForm title = "Create workspace" onCancel = { props . onCancel } >
@@ -123,9 +122,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
123
122
< ErrorSummary
124
123
error = { props . createWorkspaceErrors [ CreateWorkspaceErrors . CREATE_WORKSPACE_ERROR ] }
125
124
/>
126
- ) : (
127
- null
128
- ) }
125
+ ) : null }
129
126
< TextField
130
127
disabled
131
128
fullWidth
@@ -172,9 +169,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
172
169
props . createWorkspaceErrors [ CreateWorkspaceErrors . GET_WORKSPACE_QUOTA_ERROR ]
173
170
}
174
171
/>
175
- ) : (
176
- null
177
- ) }
172
+ ) : null }
178
173
179
174
< FormFooter
180
175
onCancel = { props . onCancel }
You can’t perform that action at this time.
0 commit comments