File tree 1 file changed +2
-2
lines changed
site/src/pages/TemplateSettingsPage 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const Language = {
26
26
ttlMaxError : "Please enter a limit that is less than or equal to 168 hours (7 days)." ,
27
27
descriptionMaxError : "Please enter a description that is less than or equal to 128 characters." ,
28
28
ttlHelperText : (
29
- ttl ? : number ,
29
+ ttl : number ,
30
30
) : string => `Workspaces created from this template will, by default, shut down ${ ttl }
31
31
hours after starting.` ,
32
32
}
@@ -173,7 +173,7 @@ export const TemplateSettingsForm: FC<TemplateSettingsForm> = ({
173
173
variant = "outlined"
174
174
type = "number"
175
175
/>
176
- { ! form . errors . max_ttl_ms && (
176
+ { ! form . errors . max_ttl_ms && form . values . max_ttl_ms && (
177
177
< Typography variant = "subtitle2" >
178
178
{ Language . ttlHelperText ( form . values . max_ttl_ms ) }
179
179
</ Typography >
You can’t perform that action at this time.
0 commit comments