Skip to content

Commit d01f1c4

Browse files
fix(publisher): Fix endpoint security API key re-saving issue
Fixes an issue in the Publisher portal where the when the endpoint security API Key is saved without any changes, it was being re-saved and causing unnecessary updates. This commit ensures that the API Key in only gets updated when there are actual changes made to it, preventing redundant inconsistent updates. Resolves: #4983
1 parent 61590f1 commit d01f1c4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints

portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/EndpointOverview.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ function EndpointOverview(props) {
696696
=== secretPlaceholder ? '' : newEndpointSecurityObj.clientSecret;
697697
newEndpointSecurityObj.password = newEndpointSecurityObj.password
698698
=== secretPlaceholder ? '' : newEndpointSecurityObj.password;
699+
newEndpointSecurityObj.apiKeyValue = newEndpointSecurityObj.apiKeyValue
700+
=== secretPlaceholder ? '' : newEndpointSecurityObj.apiKeyValue;
699701
if (type === 'NONE') {
700702
newEndpointSecurityObj = { ...CONSTS.DEFAULT_ENDPOINT_SECURITY, type };
701703
} else {

0 commit comments

Comments
 (0)