This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/test by this push:
new d598b163 Feat/1.2.1/UI (#654)
d598b163 is described below
commit d598b1635bcec1de04529cc48824935153e39411
Author: dashuai <[email protected]>
AuthorDate: Fri Nov 24 14:49:19 2023 +0800
Feat/1.2.1/UI (#654)
---
ui/src/components/Editor/ToolBars/image.tsx | 3 ---
1 file changed, 3 deletions(-)
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 });