Unverified Commit c15dc655 authored by Yeuoly's avatar Yeuoly

fix: duplicated key

parent 80504660
......@@ -20,7 +20,7 @@ const ToolNavList: FC<Props> = ({
return (
<div className={cn(className)}>
{list.map((item, index) => (
<Item isCurrent={index === currentIndex} key={item.name} payload={item} onClick={() => onChosen(index)}></Item>
<Item isCurrent={index === currentIndex} key={`${item.type}.${item.id}`} payload={item} onClick={() => onChosen(index)}></Item>
))}
</div>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment