Skip to content

Commit

Permalink
relax editing of endpoint in add site replication UI (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx committed Nov 22, 2022
1 parent 0f35369 commit e7da6cd
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -236,7 +236,7 @@ const AddReplicationSites = () => {
accessKey: es.accessKey,
secretKey: es.secretKey,
name: es.name,
endpoint: es.endpoint,
endpoint: es.endpoint.trim(),
};
});

Expand All @@ -247,7 +247,7 @@ const AddReplicationSites = () => {
accessKey: ns.accessKey,
secretKey: ns.secretKey,
name: ns.name || `dr-site-${idx}`,
endpoint: ns.endpoint,
endpoint: ns.endpoint.trim(),
});
}
return acc;
Expand Down Expand Up @@ -291,7 +291,6 @@ const AddReplicationSites = () => {
return (
<SRSiteInputRow
key={`current-${index}`}
disabledFields={["endpoint"].concat(cs.isSaved ? "name" : "")}
rowData={cs}
rowId={index}
fieldErrors={{
Expand Down Expand Up @@ -360,7 +359,6 @@ const AddReplicationSites = () => {
accessKey: accessKeyError,
secretKey: secretKeyError,
}}
disabledFields={ps.isSaved ? ["endpoint", "name"] : []}
onFieldChange={(e, fieldName, index) => {
const filedValue = e.target.value;
setExistingSites((prevItems) => {
Expand Down

0 comments on commit e7da6cd

Please sign in to comment.