From f4e61b2bf169c060a48b24a5e368200a7c979297 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 10 Dec 2018 16:53:04 +0100 Subject: [PATCH] fixup for roomsublist fix --- src/components/views/rooms/RoomList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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();