fix(xo-web/home): fix 'isHostTimeConsistentWithXoaTime.then is not a function' (#6896)

See xoa-support#15250
Introduced by 132b1a41db
This commit is contained in:
Mathieu
2023-06-15 10:07:56 +02:00
committed by GitHub
parent 88d5b7095e
commit fcc76fb8d0
2 changed files with 3 additions and 1 deletions

View File

@@ -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.

View File

@@ -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,
})