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 = () => {
|
const handleLinkSubmission = () => {
|
||||||
if (lastSelection !== null) {
|
if (lastSelection !== null) {
|
||||||
if (linkUrl !== '') {
|
if (editedLinkUrl !== '') {
|
||||||
editor.dispatchCommand(TOGGLE_LINK_COMMAND, sanitizeUrl(editedLinkUrl))
|
editor.dispatchCommand(TOGGLE_LINK_COMMAND, sanitizeUrl(editedLinkUrl))
|
||||||
}
|
}
|
||||||
setEditMode(false)
|
setEditMode(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user