mirror of https://github.com/vector-im/riot-web
Fix exception when clearing room dir search
Needed more isMounted checks after promises return.pull/21833/head
parent
c0b931a837
commit
9e3c94edf4
|
@ -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 New Issue