chore: only show comments in memo detail page

This commit is contained in:
Steven
2023-10-08 00:42:02 +08:00
parent 553de3cc7e
commit b938c8d7b6
8 changed files with 67 additions and 46 deletions

View File

@ -63,7 +63,7 @@ const MemoList: React.FC = () => {
return shouldShow;
})
: memos
).filter((memo) => memo.creatorUsername === username && memo.rowStatus === "NORMAL");
).filter((memo) => memo.creatorUsername === username && memo.rowStatus === "NORMAL" && !memo.parent);
const pinnedMemos = shownMemos.filter((m) => m.pinned);
const unpinnedMemos = shownMemos.filter((m) => !m.pinned);