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) => {
198
198
const isCloneUnstable = Boolean (
199
199
stores . main . clone && ! stores . main . isCloneStable ,
200
200
)
201
- const isCreatingClone = formik . isSubmitting || isCloneUnstable
201
+
202
+ const isCreatingClone =
203
+ ( formik . isSubmitting || isCloneUnstable ) && ! stores . main . cloneError
202
204
203
205
return (
204
206
< >
@@ -229,7 +231,10 @@ export const CreateClone = observer((props: Props) => {
229
231
fullWidth
230
232
label = "Clone ID"
231
233
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
+ } }
233
238
error = { Boolean ( formik . errors . cloneId ) }
234
239
disabled = { isCreatingClone }
235
240
/>
Original file line number Diff line number Diff line change @@ -1156,7 +1156,7 @@ export const Configuration = observer(
1156
1156
< Button
1157
1157
variant = "outlined"
1158
1158
color = "secondary"
1159
- onClick = { ( ) => switchActiveTab ( null , 0 ) }
1159
+ onClick = { switchTab }
1160
1160
>
1161
1161
Cancel
1162
1162
</ Button >
You can’t perform that action at this time.
0 commit comments