Move item key

This commit is contained in:
Terry Sutton authored and Joshen Lim committed 2022-11-03 16:11:05 +07:00
1 parent 7453c05226
commit 199fdab760
1 file changed
+1 -2
@@ -116,10 +116,9 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
{group.items.map((section: NavMenuSection) => {
if (section.items.length === 0) {
return (
<Link href={section.url}>
<Link href={section.url} key={section.name}>
<a>
<div
key={section.name}
className={[
'py-1.5 px-5 rounded text-sm transition',
`${