fixup for roomsublist fix

This commit is contained in:
Bruno Windels 2018-12-10 16:53:04 +01:00
parent fb4a441341
commit f4e61b2bf1

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