From ed40c08b808f2e0002fc8efcc3099341adddf6de Mon Sep 17 00:00:00 2001 From: Ziad Beyens Date: Wed, 11 Dec 2019 23:18:38 +0100 Subject: [PATCH] fix: ts (#3301) --- site/examples/links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/examples/links.js b/site/examples/links.js index 6e26b5e48..b4a2c905f 100644 --- a/site/examples/links.js +++ b/site/examples/links.js @@ -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,