chore: remove mark memo (#476)

This commit is contained in:
boojack
2022-11-15 21:22:08 +08:00
committed by GitHub
parent de2eff474c
commit 66f9bc48bb
9 changed files with 4 additions and 69 deletions

View File

@ -73,15 +73,6 @@ const MemoEditor = () => {
}
}, []);
useEffect(() => {
if (editorState.markMemoId && editorState.markMemoId !== UNKNOWN_ID) {
const editorCurrentValue = editorRef.current?.getContent();
const memoLinkText = `${editorCurrentValue ? "\n" : ""}Mark: @[MEMO](${editorState.markMemoId})`;
editorRef.current?.insertText(memoLinkText);
editorStateService.clearMarkMemo();
}
}, [editorState.markMemoId]);
useEffect(() => {
if (editorState.editMemoId) {
memoService.getMemoById(editorState.editMemoId ?? UNKNOWN_ID).then((memo) => {