From f1ab62524cb929bf1b57c885764fba383f455ee4 Mon Sep 17 00:00:00 2001 From: Mathieu <70369997+MathieuRA@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:21:23 +0200 Subject: [PATCH] fix(xo-web/SR): fix "VDIs to coalesce" in SR advanced tab (#6429) See https://xcp-ng.org/forum/topic/6334/coalesce-not-showing-anymore/3 Introduced by a9c123914945f72e55fb2d866e3cfccbfee3d3b1 --- CHANGELOG.unreleased.md | 1 + packages/xo-web/src/xo-app/sr/tab-advanced.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 6711bc37e..8f7628502 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -20,6 +20,7 @@ - [Backup] Fix `Lock file is already being held` error when deleting a VM backup while the VM is currently being backed up - [Tasks] Fix the pool filter that did not display tasks even if they existed (PR [#6424](https://github.com/vatesfr/xen-orchestra/pull/6424)) - [Tasks] Fix tasks being displayed for all users (PR [#6422](https://github.com/vatesfr/xen-orchestra/pull/6422)) +- [Storage/advanced] Fix the display of VDI to coalesce [#6334](https://xcp-ng.org/forum/topic/6334/coalesce-not-showing-anymore) (PR [#6429](https://github.com/vatesfr/xen-orchestra/pull/6429)) ### Packages to release diff --git a/packages/xo-web/src/xo-app/sr/tab-advanced.js b/packages/xo-web/src/xo-app/sr/tab-advanced.js index e253ea3d3..31c3b8ac0 100644 --- a/packages/xo-web/src/xo-app/sr/tab-advanced.js +++ b/packages/xo-web/src/xo-app/sr/tab-advanced.js @@ -42,7 +42,7 @@ const UnhealthyVdiChains = flowRight( chains: createSrUnhealthyVdiChainsLengthSubscription(props.sr), })), connectStore(() => ({ - vdis: createGetObjectsOfType('VDI').pick(createSelector((_, props) => props.chains, keys)), + vdis: createGetObjectsOfType('VDI').pick(createSelector((_, props) => props.chains?.unhealthyVdis, keys)), })) )(({ chains: { unhealthyVdis } = {}, vdis }) => isEmpty(vdis) ? null : (