chore: fix link editor always setting empty links in super [skip e2e]
This commit is contained in:
@@ -23,7 +23,7 @@ const LinkEditor = ({ linkUrl, isEditMode, setEditMode, editor, lastSelection, i
|
||||
|
||||
const handleLinkSubmission = () => {
|
||||
if (lastSelection !== null) {
|
||||
if (linkUrl !== '') {
|
||||
if (editedLinkUrl !== '') {
|
||||
editor.dispatchCommand(TOGGLE_LINK_COMMAND, sanitizeUrl(editedLinkUrl))
|
||||
}
|
||||
setEditMode(false)
|
||||
|
||||
Reference in New Issue
Block a user