From 7d491985522a5826104e3246d5ea865141daf8b4 Mon Sep 17 00:00:00 2001 From: Team 1280 Programming Laptop <59985235+Team1280Programming@users.noreply.github.com> Date: Thu, 15 Feb 2024 14:56:39 -0800 Subject: [PATCH] Limit author display --- src/app/page.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/page.tsx b/src/app/page.tsx index 243ad02..6cc27b7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -37,6 +37,7 @@ function sortAuthorsByDocumentsPublished(authors: { export default function Home() { const AuthorDisplay = () => { + let i = 0 return (
    {sortAuthorsByDocumentsPublished(authors).map(({ id, author }) => { @@ -44,6 +45,9 @@ export default function Home() { let affiliationSlug = data.affiliation[0].split('@')[1] let affiliation = affiliations[affiliationSlug] + i++ + + if (i > 10) return return (