Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 587325b

Browse files
authored
Merge pull request #585 from matrix-org/dbkr/fix_exception_roomdir
Fix exception when clearing room dir search
2 parents fe0dc85 + 9e3c94e commit 587325b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/structures/ScrollPanel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ module.exports = React.createClass({
402402
q.finally(fillPromise, () => {
403403
this._pendingFillRequests[dir] = false;
404404
}).then((hasMoreResults) => {
405+
if (this.unmounted) {
406+
return;
407+
}
405408
// Unpaginate once filling is complete
406409
this._checkUnfillState(!backwards);
407410

0 commit comments

Comments
 (0)