diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 10fce0ccf0..3ff3ce694a 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -164,7 +164,12 @@ module.exports = React.createClass({ // load stored sizes Object.entries(this.subListSizes).forEach(([id, size]) => { - this.resizer.forHandleWithId(id).resize(size); + const handle = this.resizer.forHandleWithId(id); + if (handle) { + try { + handle.resize(size); + } catch(_e) {} + } }); this.resizer.attach();