mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 15:10:32 +00:00
little adjust
This commit is contained in:
@@ -5,7 +5,7 @@ import { useState } from 'react'
|
||||
export const MenuItemDrop = ({ link }) => {
|
||||
const [show, changeShow] = useState(false)
|
||||
const hasSubMenu = link?.subMenus?.length > 0
|
||||
const selected = useRouter().asPath === link.to
|
||||
const selected = useRouter().asPath === link?.to
|
||||
|
||||
if (!link || !link.show) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user