mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update memo detail checks
This commit is contained in:
@@ -62,11 +62,11 @@ const MemoDetail = () => {
|
||||
|
||||
// Prepare memo comments.
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
if (!memo) {
|
||||
return;
|
||||
}
|
||||
|
||||
(async () => {
|
||||
if (memo.parentId) {
|
||||
memoStore.getOrFetchMemoById(memo.parentId).then((memo: Memo) => {
|
||||
setParentMemo(memo);
|
||||
|
Reference in New Issue
Block a user