Skip to content

Commit

Permalink
Fix endpoint error on delete one of sand or prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakith-Rambukkanage committed Oct 24, 2024
1 parent def19a3 commit c6b3097
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ function Endpoints(props) {
}
}
} else if (production.type === 'apikey') {
if (production.apiKeyValue === null) {
if (production.apiKeyValue === null && endpointConfig.production_endpoints) {
return {
isValid: false,
message: intl.formatMessage({
Expand Down Expand Up @@ -525,7 +525,7 @@ function Endpoints(props) {
}
}
} else if (sandbox.type === 'apikey') {
if (sandbox.apiKeyValue === null) {
if (sandbox.apiKeyValue === null && endpointConfig.sandbox_endpoints) {
return {
isValid: false,
message: intl.formatMessage({
Expand Down

0 comments on commit c6b3097

Please sign in to comment.