From 217e7ab294f1f808ae45874e1256ab94b644cdf1 Mon Sep 17 00:00:00 2001 From: keyan Date: Thu, 24 Jun 2021 18:58:58 -0500 Subject: [PATCH] fix enumerated profile posts --- components/items.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/items.js b/components/items.js index 07336b6b..619e33ec 100644 --- a/components/items.js +++ b/components/items.js @@ -11,7 +11,7 @@ export default function Items ({ variables, rank }) { }) if (error) return
Failed to load!
if (loading) { - return + return } const { moreItems: { items, cursor } } = data @@ -22,28 +22,28 @@ export default function Items ({ variables, rank }) { ))} - + ) } -function ItemsSkeleton ({ startRank = 0 }) { +function ItemsSkeleton ({ rank, startRank = 0 }) { const items = new Array(21).fill(null) return (
{items.map((_, i) => ( - + ))}
) } -function MoreFooter ({ cursor, fetchMore, offset }) { +function MoreFooter ({ cursor, fetchMore, rank, offset }) { const [loading, setLoading] = useState(false) if (loading) { - return + return } let Footer