chore: fix memo editor cache

pull/3499/head
Steven 11 months ago
parent 48546f05b3
commit 0657a1ef5b

@ -349,6 +349,7 @@ const MemoEditor = (props: Props) => {
toast.error(error.details);
}
localStorage.removeItem(contentCacheKey);
setState((state) => {
return {
...state,

@ -66,6 +66,7 @@ const MemoDetail = () => {
placeholder: t("editor.add-your-comment-here"),
parentMemoName: memo.name,
onConfirm: handleCommentCreated,
cacheKey: `${memo.name}-${memo.updateTime}-comment`,
});
};

Loading…
Cancel
Save