fix(xo-web/host): unsubscribe missing patches when the props change (#5370)
This commit is contained in:
parent
16c71da487
commit
1d3978ce2f
@ -191,6 +191,10 @@ export default class Host extends Component {
|
||||
return
|
||||
}
|
||||
|
||||
if (this.unsubscribeHostMissingPatches !== undefined) {
|
||||
this.unsubscribeHostMissingPatches()
|
||||
}
|
||||
|
||||
this.unsubscribeHostMissingPatches = subscribeHostMissingPatches(host, missingPatches =>
|
||||
this.setState({
|
||||
missingPatches: missingPatches && sortBy(missingPatches, patch => -patch.time),
|
||||
|
Loading…
Reference in New Issue
Block a user