Skip to content

Commit

Permalink
tweak logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed May 18, 2023
1 parent be696cf commit 732003d
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/nextapp/components/access-list/access-list-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,18 @@ const AccessListRow: React.FC<AccessListRowProps> = ({
variant="ghost"
/>
<MenuList>
{([
'kong-api-key-only',
'kong-api-key-acl'
].includes(data.productEnvironment.flow) ||
{(['kong-api-key-only', 'kong-api-key-acl'].includes(
data.productEnvironment.flow
) ||
data.productEnvironment?.credentialIssuer?.clientAuthenticator ===
'client-secret') && (
<MenuItem
data-testid="regenerate-credentials-btn"
onClick={onOpen}
>
Regenerate Credentials
</MenuItem>
)}
<MenuItem
data-testid="regenerate-credentials-btn"
onClick={onOpen}
>
Regenerate Credentials
</MenuItem>
)}
{data.productEnvironment?.credentialIssuer?.clientAuthenticator ===
'client-jwt-jwks-url' &&
controls.jwksUrl && (
Expand Down

0 comments on commit 732003d

Please sign in to comment.