From e51f279f363792bf9609956db5cdb0b9fa3ee243 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 13 Feb 2019 18:49:09 +0100 Subject: [PATCH] dont assume there items is an array --- src/components/views/elements/LazyRenderList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/LazyRenderList.js b/src/components/views/elements/LazyRenderList.js index ec56b9a532..b7916510a4 100644 --- a/src/components/views/elements/LazyRenderList.js +++ b/src/components/views/elements/LazyRenderList.js @@ -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, );