From ce08fc3865a117ee2b7f56d25fc96e80efc13587 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Mon, 11 Jan 2021 21:44:44 +0800
Subject: ...

---
 FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx')

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) => ({
-- 
cgit v1.2.3

