From 2fc84012576090d7592f1890e09e350c1745b793 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Thu, 31 Dec 2020 16:39:27 -0500 Subject: [PATCH] Fixed issue in List for checking size for isLast of ListItem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fixed: - issue in List for checking size for isLast of ListItem --- app/javascript/gabsocial/components/list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/gabsocial/components/list.js b/app/javascript/gabsocial/components/list.js index deec3512..763649ed 100644 --- a/app/javascript/gabsocial/components/list.js +++ b/app/javascript/gabsocial/components/list.js @@ -22,6 +22,7 @@ class List extends ImmutablePureComponent { } = this.props const Wrapper = !!scrollKey ? ScrollableList : Dummy + const itemsSize = !!items ? Array.isArray(items) ? items.length : items.size : 0 return ( @@ -39,7 +40,7 @@ class List extends ImmutablePureComponent { ))