Skip to content

Commit

Permalink
fixed e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Mar 27, 2024
1 parent 6603479 commit f24bcdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client/vanilla/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const Dialog: React.FC<DialogProps> = ({ open, setOpen, selectedElement }) => {
const [newTab, setNewTab] = useState(true)

useEffect(() => {
if (selectedElement) {
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)
Expand Down

0 comments on commit f24bcdf

Please sign in to comment.