From f5a17394726f6372bdc0750e91470cfaeb32ba4c Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 6 Jan 2024 10:03:36 +0800 Subject: [PATCH] chore: update memo detail checks --- web/src/pages/MemoDetail.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx index 13925ee2..3d26efd5 100644 --- a/web/src/pages/MemoDetail.tsx +++ b/web/src/pages/MemoDetail.tsx @@ -62,11 +62,11 @@ const MemoDetail = () => { // Prepare memo comments. useEffect(() => { - (async () => { - if (!memo) { - return; - } + if (!memo) { + return; + } + (async () => { if (memo.parentId) { memoStore.getOrFetchMemoById(memo.parentId).then((memo: Memo) => { setParentMemo(memo);