Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Mar 27, 2024
1 parent f24bcdf commit 69c8bf0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/client/vanilla/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ const Dialog: React.FC<DialogProps> = ({ open, setOpen, selectedElement }) => {

useEffect(() => {
if (selectedElement && selectedElement.href) {
// console.log(selectedElement.href)
const url = new URL(selectedElement.href)
const linkNew = url.hostname === 'localhost' ? url.pathname.replace('/', '') + url.hash : selectedElement.href
setLink(linkNew)
console.log('changed', linkNew)
} else {
console.log('changed', null)

setLink('')
}
}, [selectedElement])
Expand Down

0 comments on commit 69c8bf0

Please sign in to comment.