File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
components/UserAutocomplete
pages/CreateWorkspacePage Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const UserAutocomplete: FC<UserAutocompleteProps> = ({
44
44
45
45
const handleFilterChange = debounce ( ( event : ChangeEvent < HTMLInputElement > ) => {
46
46
sendSearch ( "SEARCH" , { query : event . target . value } )
47
- } , 1000 )
47
+ } , 250 )
48
48
49
49
return (
50
50
< Autocomplete
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
54
54
props ,
55
55
) => {
56
56
const { t } = useTranslation ( "createWorkspacePage" )
57
-
58
57
const [ deprecatedParameterValues , setDeprecatedParameterValues ] = useState <
59
58
Record < string , string >
60
59
> ( { } )
@@ -139,7 +138,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
139
138
/>
140
139
141
140
{ props . loadingTemplateSchema && < Loader /> }
142
- { props . selectedTemplate && props . templateSchema && (
141
+ { props . selectedTemplate && props . templateSchema && props . templateParameters && (
143
142
< >
144
143
< TextField
145
144
{ ...getFieldHelpers ( "name" ) }
@@ -179,6 +178,10 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
179
178
</ Stack >
180
179
) }
181
180
181
+ { props . templateParameters . map ( ( parameter ) => (
182
+ < WorkspaceParameter templateParameter = { parameter } key = { parameter . name } />
183
+ ) ) }
184
+
182
185
{ props . workspaceQuota && (
183
186
< WorkspaceQuota
184
187
quota = { props . workspaceQuota }
@@ -195,12 +198,6 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
195
198
/>
196
199
</ >
197
200
) }
198
-
199
- { props . selectedTemplate &&
200
- props . templateParameters &&
201
- props . templateParameters . map ( ( parameter ) => (
202
- < WorkspaceParameter templateParameter = { parameter } key = { parameter . name } />
203
- ) ) }
204
201
</ Stack >
205
202
</ form >
206
203
</ FullPageForm >
You can’t perform that action at this time.
0 commit comments