From 04f3a09ab017d55982a30b8709932222febe1e63 Mon Sep 17 00:00:00 2001 From: MlssFrncJrg <119158464+Pizzosaure@users.noreply.github.com> Date: Mon, 16 Sep 2024 09:46:50 +0200 Subject: [PATCH] fix(xo-web/host): fix "an error has occurred" in host Mode column (#7954) --- CHANGELOG.unreleased.md | 1 + packages/xo-web/src/xo-app/host/tab-network.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 2c71f8712cf..0c54d57254c 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -20,6 +20,7 @@ > Users must be able to say: “I had this issue, happy to know it's fixed” - [Hub/Recipes/Kubernetes] Properly sort versions in selector +- [Host/Network] Fix `an error has occurred` briefly displaying in 'Mode' column of the host's Network tab (PR [#7954](https://github.com/vatesfr/xen-orchestra/pull/7954)) ### Packages to release diff --git a/packages/xo-web/src/xo-app/host/tab-network.js b/packages/xo-web/src/xo-app/host/tab-network.js index 688be09c5d9..a6b953d7a24 100644 --- a/packages/xo-web/src/xo-app/host/tab-network.js +++ b/packages/xo-web/src/xo-app/host/tab-network.js @@ -176,7 +176,7 @@ class PifItemMode extends Component { () => this.state.ipv4ConfigModes, () => this.state.ipv6ConfigModes, (isIpv6, ipv4ConfigModes, ipv6ConfigModes) => - (isIpv6 ? ipv6ConfigModes : ipv4ConfigModes).map(mode => ({ label: mode, value: mode })) + (isIpv6 ? ipv6ConfigModes : ipv4ConfigModes)?.map(mode => ({ label: mode, value: mode })) ) _getValue = createSelector(