fix(xo-web/host): component not loaded if controller is undefined (#5417)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user