mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Fix exception when clearing room dir search
Needed more isMounted checks after promises return.
This commit is contained in:
parent
c0b931a837
commit
9e3c94edf4
1 changed files with 3 additions and 0 deletions
|
@ -402,6 +402,9 @@ module.exports = React.createClass({
|
|||
q.finally(fillPromise, () => {
|
||||
this._pendingFillRequests[dir] = false;
|
||||
}).then((hasMoreResults) => {
|
||||
if (this.unmounted) {
|
||||
return;
|
||||
}
|
||||
// Unpaginate once filling is complete
|
||||
this._checkUnfillState(!backwards);
|
||||
|
||||
|
|
Loading…
Reference in a new issue