fix(website): Overload switcher duplicates reference links (#9614)

fix(website): add idx to link key
This commit is contained in:
brynpttrsn 2023-06-13 15:01:18 -04:00 committed by GitHub
parent 1cab79f6fd
commit 1716202f44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ export function ExcerptText({ model, excerpt }: ExcerptTextProps) {
<ItemLink
className="text-blurple"
itemURI={resolveItemURI(item)}
key={`${item.displayName}-${item.containerKey}`}
key={`${item.displayName}-${item.containerKey}-${idx}`}
packageName={item.getAssociatedPackage()?.displayName.replace('@discordjs/', '')}
>
{token.text}