Skip to content

Commit

Permalink
fix(xo-web/host): fix "an error has occurred" in host Mode column (#7954
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MelissaFrncJrg authored Sep 16, 2024
1 parent 385ff21 commit 04f3a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/xo-web/src/xo-app/host/tab-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 04f3a09

Please sign in to comment.