mirror of https://github.com/vector-im/riot-web
Null-guard roomId before sending a dispatch to update scroll state
Otherwise we pointlessly assign the null key to somethingpull/21833/head
parent
59e649f326
commit
1792fa45f4
|
@ -590,6 +590,10 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
_updateScrollMap(roomId) {
|
||||
// No point updating scroll state if the room ID hasn't been resolved yet
|
||||
if (!roomId) {
|
||||
return;
|
||||
}
|
||||
dis.dispatch({
|
||||
action: 'update_scroll_state',
|
||||
room_id: roomId,
|
||||
|
|
Loading…
Reference in New Issue