fix(xo-web/SelectVmTemplate): fix group by pool

Fixes https://xcp-ng.org/forum/post/72009

Introduced by 1718649e0
This commit is contained in:
Julien Fontanet 2024-02-23 14:42:06 +01:00
parent 089704dbe8
commit 192326201f

View File

@ -460,7 +460,7 @@ export const SelectHostVm = makeStoreSelect(
export const SelectVmTemplate = makeStoreSelect(
() => {
const getVmTemplatesByPool = createGetObjectsOfType('VM-template').filter(getPredicate).sort().groupBy('$container')
const getVmTemplatesByPool = createGetObjectsOfType('VM-template').filter(getPredicate).sort().groupBy('$pool')
const getPools = createGetObjectsOfType('pool')
.pick(createSelector(getVmTemplatesByPool, vmTemplatesByPool => keys(vmTemplatesByPool)))
.sort()