fix(xo-web/home): fix 'isHostTimeConsistentWithXoaTime.then is not a function' (#6896)
See xoa-support#15250
Introduced by 132b1a41db
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user