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);