diff --git a/ui/src/components/Editor/ToolBars/image.tsx b/ui/src/components/Editor/ToolBars/image.tsx index a38e56fe..1cfe1d9b 100644 --- a/ui/src/components/Editor/ToolBars/image.tsx +++ b/ui/src/components/Editor/ToolBars/image.tsx @@ -218,9 +218,6 @@ const Image = () => { const addLink = (ctx) => { context = ctx; setEditor(context.editor); - if (!editor) { - return; - } const text = context.editor?.getSelection(); setImageName({ ...imageName, value: text });