fix: missing key

This commit is contained in:
Eric Lewis 2024-03-29 15:03:34 -04:00 committed by Nabarun
parent cd2dce2404
commit 8210512eea

View File

@ -155,13 +155,13 @@ export const RepositoryList = () => {
{Boolean(repositoryDetails.length) ? ( {Boolean(repositoryDetails.length) ? (
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
{repositoryDetails.map((repo, index) => ( {repositoryDetails.map((repo, index) => (
<> <div key={index}>
<ProjectRepoCard repository={repo} key={index} /> <ProjectRepoCard repository={repo} />
{/* Horizontal line */} {/* Horizontal line */}
{index !== repositoryDetails.length - 1 && ( {index !== repositoryDetails.length - 1 && (
<div className="border-b border-border-separator/[0.06] w-full" /> <div className="border-b border-border-separator/[0.06] w-full" />
)} )}
</> </div>
))} ))}
</div> </div>
) : ( ) : (