fix(xo-web/host): component not loaded if controller is undefined (#5417)

This commit is contained in:
Mathieu
2020-12-14 14:29:31 +01:00
committed by GitHub
parent c10f6e6c6a
commit a03581ccd3
2 changed files with 3 additions and 1 deletions

View File

@@ -20,6 +20,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Host] Fix `an error has occurred` on accessing a host's page (PR [#5417](https://github.com/vatesfr/xen-orchestra/pull/5417))
### Packages to release
> Packages will be released in the order they are here, therefore, they should

View File

@@ -65,7 +65,7 @@ const isRunning = host => host && host.power_state === 'Running'
const getLogs = createGetObjectsOfType('message')
.filter(
createSelector(getHost, getVmController, (host, controller) => ({ $object }) =>
$object === host.id || $object === controller.id
$object === host.id || $object === (controller !== undefined && controller.id)
)
)
.sort()