1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(kubeconfig): fix download checkbox [EE-5199] (#8674)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2023-03-17 10:33:56 +13:00 committed by GitHub
parent 13ba72ee07
commit e142be399d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,8 +96,10 @@ export function KubeconfigPrompt({
<Checkbox
id={`${env.Id}`}
label={`${env.Name} (${env.URL})`}
checked={!!selection[env.Id]}
onChange={() => toggleSelection(env.Id, !selection[env.Id])}
checked={selection.includes(env.Id)}
onChange={() =>
toggleSelection(env.Id, !selection.includes(env.Id))
}
/>
</div>
))}