Skip to content

Commit

Permalink
Merge pull request #833 from AnuGayan/main-4.4.0-alpha
Browse files Browse the repository at this point in the history
Fix issue in Endpoints.jsx
  • Loading branch information
ashera96 authored Oct 24, 2024
2 parents 5c55268 + 68c1bcd commit 11ceee6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 11ceee6

Please sign in to comment.