mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
dont assume there items is an array
This commit is contained in:
parent
42409691b3
commit
e51f279f36
@ -80,7 +80,7 @@ export default class LazyRenderList extends React.Component {
|
||||
const {renderRange} = this.state;
|
||||
const paddingTop = renderRange.topCount * itemHeight;
|
||||
const paddingBottom = renderRange.bottomCount * itemHeight;
|
||||
const renderedItems = items.slice(
|
||||
const renderedItems = (items || []).slice(
|
||||
renderRange.topCount,
|
||||
renderRange.topCount + renderRange.renderCount,
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user