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 @@ -196,7 +196,9 @@ export const CreateClone = observer((props: Props) => {
196
196
const isCloneUnstable = Boolean (
197
197
stores . main . clone && ! stores . main . isCloneStable ,
198
198
)
199
- const isCreatingClone = formik . isSubmitting || isCloneUnstable
199
+
200
+ const isCreatingClone =
201
+ ( formik . isSubmitting || isCloneUnstable ) && ! stores . main . cloneError
200
202
201
203
return (
202
204
< >
@@ -227,7 +229,10 @@ export const CreateClone = observer((props: Props) => {
227
229
fullWidth
228
230
label = "Clone ID"
229
231
value = { formik . values . cloneId }
230
- onChange = { ( e ) => formik . setFieldValue ( 'cloneId' , e . target . value ) }
232
+ onChange = { ( e ) => {
233
+ const sanitizedCloneIdValue = e . target . value . replace ( / \s / g, '' )
234
+ formik . setFieldValue ( 'cloneId' , sanitizedCloneIdValue )
235
+ } }
231
236
error = { Boolean ( formik . errors . cloneId ) }
232
237
disabled = { isCreatingClone }
233
238
/>
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