File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
portal-ui/src/screens/Console/Configurations/SiteReplication Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ const AddReplicationSites = () => {
236
236
accessKey : es . accessKey ,
237
237
secretKey : es . secretKey ,
238
238
name : es . name ,
239
- endpoint : es . endpoint ,
239
+ endpoint : es . endpoint . trim ( ) ,
240
240
} ;
241
241
} ) ;
242
242
@@ -247,7 +247,7 @@ const AddReplicationSites = () => {
247
247
accessKey : ns . accessKey ,
248
248
secretKey : ns . secretKey ,
249
249
name : ns . name || `dr-site-${ idx } ` ,
250
- endpoint : ns . endpoint ,
250
+ endpoint : ns . endpoint . trim ( ) ,
251
251
} ) ;
252
252
}
253
253
return acc ;
@@ -291,7 +291,6 @@ const AddReplicationSites = () => {
291
291
return (
292
292
< SRSiteInputRow
293
293
key = { `current-${ index } ` }
294
- disabledFields = { [ "endpoint" ] . concat ( cs . isSaved ? "name" : "" ) }
295
294
rowData = { cs }
296
295
rowId = { index }
297
296
fieldErrors = { {
@@ -360,7 +359,6 @@ const AddReplicationSites = () => {
360
359
accessKey : accessKeyError ,
361
360
secretKey : secretKeyError ,
362
361
} }
363
- disabledFields = { ps . isSaved ? [ "endpoint" , "name" ] : [ ] }
364
362
onFieldChange = { ( e , fieldName , index ) => {
365
363
const filedValue = e . target . value ;
366
364
setExistingSites ( ( prevItems ) => {
You can’t perform that action at this time.
0 commit comments