From e7da6cd6512717fbd07c2d2dbb62a7e2fdf99ac9 Mon Sep 17 00:00:00 2001 From: Prakash Senthil Vel <23444145+prakashsvmx@users.noreply.github.com> Date: Tue, 22 Nov 2022 22:37:16 +0530 Subject: [PATCH] relax editing of endpoint in add site replication UI (#2474) --- .../Configurations/SiteReplication/AddReplicationSites.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/portal-ui/src/screens/Console/Configurations/SiteReplication/AddReplicationSites.tsx b/portal-ui/src/screens/Console/Configurations/SiteReplication/AddReplicationSites.tsx index 3a03a2f60..3b3fe1d7b 100644 --- a/portal-ui/src/screens/Console/Configurations/SiteReplication/AddReplicationSites.tsx +++ b/portal-ui/src/screens/Console/Configurations/SiteReplication/AddReplicationSites.tsx @@ -236,7 +236,7 @@ const AddReplicationSites = () => { accessKey: es.accessKey, secretKey: es.secretKey, name: es.name, - endpoint: es.endpoint, + endpoint: es.endpoint.trim(), }; }); @@ -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; @@ -291,7 +291,6 @@ const AddReplicationSites = () => { return ( { accessKey: accessKeyError, secretKey: secretKeyError, }} - disabledFields={ps.isSaved ? ["endpoint", "name"] : []} onFieldChange={(e, fieldName, index) => { const filedValue = e.target.value; setExistingSites((prevItems) => {