CreateImageWizard: fix packages addAll button
When clicking the packages add all button the list of available packages did not get added to the list of chosen packages. Now the chosen packages and available packages are concatenated together.
This commit is contained in:
parent
d779dd0ad7
commit
7e8911a40c
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ const Packages = ({ defaultArch, ...props }) => {
|
|||
chosenOptionsTitle="Chosen packages"
|
||||
addSelected={ packageListChange }
|
||||
removeSelected={ packageListChange }
|
||||
addAll={ packageListChange }
|
||||
addAll={ (available, chosen) => packageListChange([], chosen.concat(available)) }
|
||||
removeAll= { (newAvailablePackages) => packageListChange(
|
||||
newAvailablePackages,
|
||||
packagesSelected.filter((item) => !mapComponentToPackage(item)?.name?.includes(filterSelected))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue