From 97f7a066e21756f4499724460cbffccc1b2e2cbf Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 5 Jul 2023 16:54:33 +0800 Subject: [PATCH] Fix items not updating when items count = 0 --- src/components/timeline.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index 56ad9b6b..9d7984ba 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -53,7 +53,7 @@ function Timeline({ (async () => { try { let { done, value } = await fetchItems(firstLoad); - if (value?.length) { + if (Array.isArray(value)) { if (boostsCarousel) { value = groupBoosts(value); }