mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-19 05:31:56 +02:00
fix: ts (#3301)
This commit is contained in:
committed by
Ian Storm Taylor
parent
26a91f805a
commit
ed40c08b80
@@ -86,7 +86,7 @@ const wrapLink = (editor, url) => {
|
||||
}
|
||||
|
||||
const { selection } = editor
|
||||
const isCollapsed = Range.isCollapsed(selection)
|
||||
const isCollapsed = selection && Range.isCollapsed(selection)
|
||||
const link = {
|
||||
type: 'link',
|
||||
url,
|
||||
|
Reference in New Issue
Block a user