fixup for roomsublist fix

pull/21833/head
Bruno Windels 2018-12-10 16:53:04 +01:00
parent fb4a441341
commit f4e61b2bf1
1 changed files with 6 additions and 1 deletions

View File

@ -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();