1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: show api token on playground (#7753)

Fix CR condition preventing API token from showing up
This commit is contained in:
Tymoteusz Czech 2024-08-05 11:52:49 +02:00 committed by GitHub
parent f89b8249f7
commit c37c86f7a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -119,6 +119,9 @@ test(
'combobox',
);
expect(tokenInput).toHaveValue(
'default:development.964a287e1b728cb5f4f3e0120df92cb5',
);
expect(projectInput).toBeDisabled();
expect(environmentInput).toBeDisabled();
await within(projectAutocomplete).findByText('Default');

View File

@ -242,7 +242,7 @@ export const PlaygroundConnectionFieldset: FC<
<Box>
<StyledInput
label='API token'
value={token || changeRequest ? ' ' : ''}
value={token || (changeRequest ? ' ' : '')}
onChange={onSetToken}
type={'text'}
error={Boolean(tokenError)}