From 0768b3e950dc81079060d6f4bf2c89c143d316fe Mon Sep 17 00:00:00 2001 From: AnuGayan Date: Thu, 24 Oct 2024 21:45:16 +0530 Subject: [PATCH 1/2] Fix issue in Endpoints.jsx --- .../src/app/components/Apis/Details/Endpoints/Endpoints.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx index 558be616c3d..46b3c04ddf4 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx @@ -471,7 +471,7 @@ function Endpoints(props) { } } } else if (production.type === 'apikey') { - if ((production.apiKeyValue === null || production.apiKeyValue === '') && + if ((production.apiKeyValue === null) && endpointConfig.production_endpoints) { return { isValid: false, @@ -526,7 +526,7 @@ function Endpoints(props) { } } } else if (sandbox.type === 'apikey') { - if ((sandbox.apiKeyValue === null || sandbox.apiKeyValue === '') && + if ((sandbox.apiKeyValue === null) && endpointConfig.sandbox_endpoints) { return { isValid: false, From 68c1bcd066bae6859bdbc8f79cf2100849a4d017 Mon Sep 17 00:00:00 2001 From: AnuGayan Date: Fri, 25 Oct 2024 00:07:56 +0530 Subject: [PATCH 2/2] Fix issue in Endpoints.jsx --- .../src/app/components/Apis/Details/Endpoints/Endpoints.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx index 46b3c04ddf4..1cfaf0c4da0 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx @@ -471,8 +471,7 @@ function Endpoints(props) { } } } else if (production.type === 'apikey') { - if ((production.apiKeyValue === null) && - endpointConfig.production_endpoints) { + if (production.apiKeyValue === null && endpointConfig.production_endpoints) { return { isValid: false, message: intl.formatMessage({ @@ -526,8 +525,7 @@ function Endpoints(props) { } } } else if (sandbox.type === 'apikey') { - if ((sandbox.apiKeyValue === null) && - endpointConfig.sandbox_endpoints) { + if (sandbox.apiKeyValue === null && endpointConfig.sandbox_endpoints) { return { isValid: false, message: intl.formatMessage({