fix(xo-web/dashboard/health): fix 'an error has occurred' (#4132)

Fixes  #4128
This commit is contained in:
Rajaa.BARHTAOUI 2019-04-09 15:17:34 +02:00 committed by Pierre Donias
parent cdcd7154ba
commit 56961b55bd
2 changed files with 9 additions and 3 deletions

View File

@ -11,6 +11,7 @@
- [Continuous Replication] Fix VHD size guess for empty files [#4105](https://github.com/vatesfr/xen-orchestra/issues/4105) (PR [#4107](https://github.com/vatesfr/xen-orchestra/pull/4107))
- [Backup NG] Only display full backup interval in case of a delta backup (PR [#4125](https://github.com/vatesfr/xen-orchestra/pull/4107))
- [Dashboard/Health] fix 'an error has occurred' on the storage state table [#4128](https://github.com/vatesfr/xen-orchestra/issues/4128) (PR [#4132](https://github.com/vatesfr/xen-orchestra/pull/4132))
### Released packages

View File

@ -39,9 +39,14 @@ import {
const SrColContainer = connectStore(() => ({
container: createGetObject(),
}))(({ container }) => (
<Link to={`${container.type}s/${container.id}`}>{container.name_label}</Link>
))
}))(
({ container }) =>
container !== undefined && (
<Link to={`${container.type}s/${container.id}`}>
{container.name_label}
</Link>
)
)
const VmColContainer = connectStore(() => ({
container: createGetObject(),