File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,9 @@ export const CreateClone = observer((props: Props) => {
198198 const isCloneUnstable = Boolean (
199199 stores . main . clone && ! stores . main . isCloneStable ,
200200 )
201- const isCreatingClone = formik . isSubmitting || isCloneUnstable
201+
202+ const isCreatingClone =
203+ ( formik . isSubmitting || isCloneUnstable ) && ! stores . main . cloneError
202204
203205 return (
204206 < >
@@ -229,7 +231,10 @@ export const CreateClone = observer((props: Props) => {
229231 fullWidth
230232 label = "Clone ID"
231233 value = { formik . values . cloneId }
232- onChange = { ( e ) => formik . setFieldValue ( 'cloneId' , e . target . value ) }
234+ onChange = { ( e ) => {
235+ const sanitizedCloneIdValue = e . target . value . replace ( / \s / g, '' )
236+ formik . setFieldValue ( 'cloneId' , sanitizedCloneIdValue )
237+ } }
233238 error = { Boolean ( formik . errors . cloneId ) }
234239 disabled = { isCreatingClone }
235240 />
Original file line number Diff line number Diff line change @@ -1156,7 +1156,7 @@ export const Configuration = observer(
11561156 < Button
11571157 variant = "outlined"
11581158 color = "secondary"
1159- onClick = { ( ) => switchActiveTab ( null , 0 ) }
1159+ onClick = { switchTab }
11601160 >
11611161 Cancel
11621162 </ Button >
You can’t perform that action at this time.
0 commit comments