Skip to content

Commit

Permalink
chore: fix memo editor cache
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jun 1, 2024
1 parent 48546f0 commit 0657a1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/src/components/MemoEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ const MemoEditor = (props: Props) => {
toast.error(error.details);
}

localStorage.removeItem(contentCacheKey);
setState((state) => {
return {
...state,
Expand Down
1 change: 1 addition & 0 deletions web/src/pages/MemoDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const MemoDetail = () => {
placeholder: t("editor.add-your-comment-here"),
parentMemoName: memo.name,
onConfirm: handleCommentCreated,
cacheKey: `${memo.name}-${memo.updateTime}-comment`,
});
};

Expand Down

0 comments on commit 0657a1e

Please sign in to comment.