refactor(link): remove log on enter pressed

This commit is contained in:
Aslam H
2024-09-10 03:09:58 +07:00
parent 0f657c429d
commit 421bd9b0b6

View File

@@ -167,7 +167,6 @@ const LinkList: React.FC<LinkListProps> = ({ activeItemIndex, setActiveItemIndex
return newIndex
})
} else if (e.key === "Enter" && !disableEnterKey) {
console.log("Enter key pressed", { activeItemIndex, sortedLinks, disableEnterKey })
e.preventDefault()
if (activeItemIndex !== null) {
const activeLink = sortedLinks[activeItemIndex]