diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 0a733b1df..c5f0c2671 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -13,6 +13,8 @@ > Users must be able to say: “I had this issue, happy to know it's fixed” +- [Tasks] Fix tasks not displayed when running CR backup job [Forum#6038](https://xcp-ng.org/forum/topic/6038/not-seeing-tasks-any-more-as-admin) (PR [#6315](https://github.com/vatesfr/xen-orchestra/pull/6315)) + ### Packages to release > When modifying a package, add it here with its release type. diff --git a/packages/xo-web/src/common/selectors.js b/packages/xo-web/src/common/selectors.js index f417dfaa2..730be173a 100644 --- a/packages/xo-web/src/common/selectors.js +++ b/packages/xo-web/src/common/selectors.js @@ -638,11 +638,10 @@ export const getResolvedPendingTasks = create( // { taskId → operation } map instead of { taskRef → operation } map ...defined(linkedObjectsByTaskRefOrId[task.id], []), ] - objects.length > 0 && - resolvedTasks.push({ - ...task, - objects, - }) + resolvedTasks.push({ + ...task, + objects, + }) }) return resolvedTasks }