feat: cache editing memo id (#388)

* feat: cache editing memo id

* chore: update
This commit is contained in:
boojack
2022-10-31 21:39:22 +08:00
committed by GitHub
parent ef5492074e
commit 9d8c9609c3
6 changed files with 46 additions and 27 deletions

View File

@ -113,7 +113,7 @@ const Memo: React.FC<Props> = (props: Props) => {
if (targetEl.className === "memo-link-text") {
const memoId = targetEl.dataset?.value;
const memoTemp = memoService.getMemoById(Number(memoId) ?? UNKNOWN_ID);
const memoTemp = await memoService.getMemoById(Number(memoId) ?? UNKNOWN_ID);
if (memoTemp) {
showMemoCardDialog(memoTemp);