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..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 || production.apiKeyValue === '') && - 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 || sandbox.apiKeyValue === '') && - endpointConfig.sandbox_endpoints) { + if (sandbox.apiKeyValue === null && endpointConfig.sandbox_endpoints) { return { isValid: false, message: intl.formatMessage({