diff options
author | crupest <crupest@outlook.com> | 2021-01-11 21:44:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-11 21:44:44 +0800 |
commit | ce08fc3865a117ee2b7f56d25fc96e80efc13587 (patch) | |
tree | a4800c2f6f8b2fb5f84f41762b9c23c79aa593e2 /FrontEnd/src | |
parent | 555fe9fb1ae5227a535e6beff05e7237cbbccfce (diff) | |
download | timeline-ce08fc3865a117ee2b7f56d25fc96e80efc13587.tar.gz timeline-ce08fc3865a117ee2b7f56d25fc96e80efc13587.tar.bz2 timeline-ce08fc3865a117ee2b7f56d25fc96e80efc13587.zip |
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx index d7e4d696..f5dec67c 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx @@ -78,9 +78,7 @@ export default function TimelinePageTemplate<TManageItem>( const { data: postsInfo } = postsAndState; if (postsInfo === "forbid") { return "forbid"; - } else if (postsInfo === "notexist") { - return undefined; - } else if (postsInfo == null) { + } else if (postsInfo == null || postsInfo === "notexist") { return undefined; } else { return postsInfo.posts.map((post) => ({ |