From 56961b55bd567987a8a73a0b9996f3309de2e6a0 Mon Sep 17 00:00:00 2001 From: "Rajaa.BARHTAOUI" Date: Tue, 9 Apr 2019 15:17:34 +0200 Subject: [PATCH] fix(xo-web/dashboard/health): fix 'an error has occurred' (#4132) Fixes #4128 --- CHANGELOG.unreleased.md | 1 + packages/xo-web/src/xo-app/dashboard/health/index.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 26b24605e..d58a8409a 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -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 diff --git a/packages/xo-web/src/xo-app/dashboard/health/index.js b/packages/xo-web/src/xo-app/dashboard/health/index.js index 9b013dc8a..2edc5e594 100644 --- a/packages/xo-web/src/xo-app/dashboard/health/index.js +++ b/packages/xo-web/src/xo-app/dashboard/health/index.js @@ -39,9 +39,14 @@ import { const SrColContainer = connectStore(() => ({ container: createGetObject(), -}))(({ container }) => ( - {container.name_label} -)) +}))( + ({ container }) => + container !== undefined && ( + + {container.name_label} + + ) +) const VmColContainer = connectStore(() => ({ container: createGetObject(),