mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
chore: update memo detail checks
This commit is contained in:
parent
a297cc3140
commit
f5a1739472
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue