Skip to content

Commit

Permalink
fix(xo-web/home): fix 'isHostTimeConsistentWithXoaTime.then is not a …
Browse files Browse the repository at this point in the history
…function' (#6896)

See xoa-support#15250
Introduced by 132b1a4
  • Loading branch information
MathieuRA authored Jun 15, 2023
1 parent 88d5b70 commit fcc76fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Home/Host] Fix "isHostTimeConsistentWithXoaTime.then is not a function" (PR [#6896](https://github.com/vatesfr/xen-orchestra/pull/6896))

### Packages to release

> When modifying a package, add it here with its release type.
Expand Down
2 changes: 1 addition & 1 deletion packages/xo-web/src/xo-app/home/host-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class HostItem extends Component {
}

componentWillMount() {
isHostTimeConsistentWithXoaTime(this.props.item).then(value =>
Promise.resolve(isHostTimeConsistentWithXoaTime(this.props.item)).then(value =>
this.setState({
isHostTimeConsistentWithXoaTime: value,
})
Expand Down

0 comments on commit fcc76fb

Please sign in to comment.