mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-07 21:26:13 +02:00
fix NPE if messagePanel isn't yet defined
This commit is contained in:
parent
50ac0ab4cf
commit
424540e57a
@ -358,7 +358,9 @@ module.exports = React.createClass({
|
||||
// pagination request, so give the messagePanel a chance to set off
|
||||
// another.
|
||||
|
||||
this.refs.messagePanel.checkFillState();
|
||||
if (this.refs.messagePanel) {
|
||||
this.refs.messagePanel.checkFillState();
|
||||
}
|
||||
},
|
||||
|
||||
onSearchResultsFillRequest: function(backwards) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user