fix(xo-web/SelectVmTemplate): fix group by pool
Fixes https://xcp-ng.org/forum/post/72009
Introduced by 1718649e0
This commit is contained in:
parent
089704dbe8
commit
192326201f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user